Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filebeat.yml:
- prospectors:
- # Mounted `filebeat-prospectors` configmap:
- path: ${path.config}/prospectors.d/*.yml
- # Reload prospectors configs as they change:
- reload.enabled: false
- modules:
- path: ${path.config}/modules.d/*.yml
- # Reload module configs as they change:
- reload.enabled: false
- json.keys_under_root: true
- fields_under_root: true
- processors:
- - add_cloud_metadata:
- output.elasticsearch:
- hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
- username: ${ELASTICSEARCH_USERNAME}
- password: ${ELASTICSEARCH_PASSWORD}
- filebeat-prospectors.yaml
- - type: log
- paths:
- - /var/lib/docker/containers/*/*.log
- fields_under_root: true
- json.message_key: log
- json.keys_under_root: true
- processors:
- - add_kubernetes_metadata:
- in_cluster: true
- namespace: ${POD_NAMESPACE}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement