Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. if [logger] == "TASK_START" {
  2. aggregate {
  3. task_id => "%{taskid}"
  4. code => "map['sql_duration'] = 0"
  5. map_action => "create"
  6. }
  7. }
  8.  
  9. if [logger] == "SQL" {
  10. aggregate {
  11. task_id => "%{taskid}"
  12. code => "map['sql_duration'] += event['duration']"
  13. map_action => "update"
  14. }
  15. }
  16.  
  17. if [logger] == "TASK_END" {
  18. aggregate {
  19. task_id => "%{taskid}"
  20. code => "event['sql_duration'] = map['sql_duration']"
  21. map_action => "update"
  22. end_of_task => true
  23. timeout => 120
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement