Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes JSON syntax getting broken by "Reached end of topic"
  • Loading branch information
solsson committed Nov 4, 2017
commit 52c28e8057a28270c3197766654ea46a9225976c
1 change: 1 addition & 0 deletions logs-streaming/filebeat-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ data:
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
symlinks: true
# reduce the risk for aggregation recursion: match pod names to exclude own's logs + test logs
exclude_files: ['^(.*\/)?logs-','^(.*\/)?test-']
Expand Down
2 changes: 1 addition & 1 deletion logs-streaming/test/logs-filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:

echo ""
echo "{\"#---\":\"$(date -u --iso-8601='ns')\"}"
kafkacat -b $BOOTSTRAP -C -t $TOPIC -f '{"#topic":"%t","#partition":%p,"#offset":%o,"#key":"%k","=":%s}\n' -o -10 -e
kafkacat -b $BOOTSTRAP -C -t $TOPIC -f '{"#topic":"%t","#partition":%p,"#offset":%o,"#key":"%k","=":%s}\n' -o -10 -e -q

exit 0

Expand Down