Advertisement
Guest User

Untitled

a guest
Jun 20th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. input {
  2. file {
  3. path => "/opt/mule-enterprise-standalone-3.8.4/logs/events.log"
  4. start_position => "beginning"
  5. type => "mule-event"
  6. }
  7. }
  8.  
  9. filter {
  10. if [type] == "mule-event" {
  11.  
  12. json{
  13. source => message
  14. }
  15.  
  16. #2017-06-15T18:07:43465+0200
  17. date {
  18. match => ["timestamp", "yy-MM-dd'T'HH:mm:SSSSSZ"]
  19. target => "@timestamp"
  20. }
  21.  
  22. }
  23. }
  24.  
  25. output {
  26. elasticsearch {
  27. hosts => ["localhost:9200"]
  28. #user => "elastic"
  29. #password => "changeme"
  30. template_overwrite => true
  31. }
  32. stdout { codec => rubydebug }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement