Advertisement
thanh_thu

filebeat_kong

Jul 26th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. filebeat:
  2. prospectors:
  3. -
  4. paths:
  5. - /usr/local/kong/logs/access.log
  6. - /usr/local/kong/logs/error.log
  7. - /usr/local/kong/logs/admin_access.log
  8. encoding: utf-8
  9. input_type: log
  10. fields:
  11. level: debug
  12. document_type: kong
  13. registry_file: /var/lib/filebeat/registry
  14. output:
  15. logstash:
  16. hosts: ["192.168.10.86:5044"]
  17. worker: 1
  18. bulk_max_size: 2048
  19. shipper:
  20. name: ctl_kong
  21. tags: ["kong"]
  22. logging:
  23. to_syslog: false
  24. to_files: true
  25. files:
  26. path: /var/log/filebeat
  27. name: filebeat
  28. rotateeverybytes: 1048576000 # = 1GB
  29. keepfiles: 7
  30. selectors: ["*"]
  31. level: info
  32.  
  33.  
  34. https://github.com/elastic/beats/blob/master/filebeat/filebeat.yml
  35. https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html
  36. https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-template.html
  37. https://discuss.elastic.co/t/filebeat-index-issue-template-pattern-name/133738
  38. https://github.com/TrongTan124/ghi-chep-ELK-OPS/blob/master/tim-hieu-ve-beat.md
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement