Advertisement
Guest User

Untitled

a guest
Jun 4th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1.  
  2. filebeat.yml:
  3. prospectors:
  4. # Mounted `filebeat-prospectors` configmap:
  5. path: ${path.config}/prospectors.d/*.yml
  6. # Reload prospectors configs as they change:
  7. reload.enabled: false
  8. modules:
  9. path: ${path.config}/modules.d/*.yml
  10. # Reload module configs as they change:
  11. reload.enabled: false
  12.  
  13. json.keys_under_root: true
  14. fields_under_root: true
  15. processors:
  16. - add_cloud_metadata:
  17.  
  18. output.elasticsearch:
  19. hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
  20. username: ${ELASTICSEARCH_USERNAME}
  21. password: ${ELASTICSEARCH_PASSWORD}
  22.  
  23. filebeat-prospectors.yaml
  24. - type: log
  25. paths:
  26. - /var/lib/docker/containers/*/*.log
  27. fields_under_root: true
  28. json.message_key: log
  29. json.keys_under_root: true
  30. processors:
  31. - add_kubernetes_metadata:
  32. in_cluster: true
  33. namespace: ${POD_NAMESPACE}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement