Skip to content

Commit

Permalink
Fixes kubernetes metadata inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Nov 4, 2017
1 parent 52c28e8 commit 504911a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions logs-streaming/filebeat-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ data:
- type: log
enabled: true
paths:
- /var/log/containers/*.log
# Logs say a lot of https://github.com/elastic/beats/blob/v6.0.0-rc2/filebeat/prospector/log/prospector.go#L250
- /var/lib/docker/containers/*/*.log
symlinks: true
# reduce the risk for aggregation recursion: match pod names to exclude own's logs + test logs
exclude_files: ['^(.*\/)?logs-','^(.*\/)?test-']
processors:
- add_kubernetes_metadata:
in_cluster: true
namespace: logs-kafka
output.kafka:
hosts: ["kafka-0.broker.kafka.svc.cluster.local:9092", "kafka-1.broker.kafka.svc.cluster.local:9092", "kafka-2.broker.kafka.svc.cluster.local:9092"]
Expand Down
2 changes: 1 addition & 1 deletion logs-streaming/filebeat-logs-kube-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- -c
- /etc/filebeat/filebeat.yml
- -d
- "service,beat"
- "service,beat,kubernetes"
env:
- name: TOPIC
value: ops-kube-logs-filebeat-001
Expand Down

0 comments on commit 504911a

Please sign in to comment.