Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. filebeat.inputs:
  2.  
  3. # Each - is an input. Most options can be set at the input level, so
  4. # you can use different inputs for various configurations.
  5. # Below are the input specific configurations.
  6.  
  7. - type: log
  8.  
  9. # Change to true to enable this input configuration.
  10. enabled: true
  11.  
  12. # Paths that should be crawled and fetched. Glob based paths.
  13. paths:
  14. - /path/to/logs
  15. #- c:\programdata\elasticsearch\logs\*
  16.  
  17. processors:
  18. - dissect:
  19. tokenizer: "[%{date} %{time} %{level}/%{worker}] %{details}"
  20. field: "message"
  21. target_prefix: "extracted"
  22. ignore_missing: true
  23.  
  24. - decode_json_fields:
  25. fields: ["extracted.details"]
  26. target: "json"
  27. process_array: true
  28. max_depth: 1
  29. overwrite_keys: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement