Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. filter {
  2. json {
  3. source => "message"
  4. }
  5. }
  6.  
  7. filebeat.inputs:
  8. - type: log
  9. paths:
  10. - 'path to the log directory you want to track'
  11. enter code here
  12. input_type: log
  13. json.keys_under_root: true
  14. json.add_error_key: true
  15. fields:
  16. log_type: 'type of log'
  17.  
  18. processors:
  19. - decode_json_fields:
  20. fields: ["message"]
  21. process_array: true
  22.  
  23. - add_tags:
  24. tags:
  25. - 'tag in elastic'
  26.  
  27. filebeat.config.modules:
  28. path: ${path.config}/modules.d/*.yml
  29.  
  30. setup.template.settings:
  31. index.number_of_shards: 1
  32.  
  33. output.logstash:
  34. # The Logstash hosts
  35. hosts: ["where logstash is running"]
  36. index: 'your index'
  37.  
  38. codec.json:
  39. pretty: true
  40. escape_html: false
  41.  
  42. #================================ Processors =====================================
  43. # Configure processors to enhance or manipulate events generated by the beat.
  44. processors:
  45. - decode_json_fields:
  46. fields: ["message"]
  47. process_array: true
  48.  
  49. json.keys_under_root: true
  50. json.add_error_key: true
  51.  
  52. processors:
  53. - decode_json_fields:
  54. fields: ["message"]
  55. process_array: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement