Hm, I think I still have something wrong - I've tried with both container
and filestream
, but it doesn't seem to be adding fields to the top-level in kinesis
filebeat.yml: |
filebeat.inputs:
- type: filestream
paths:
- /var/log/containers/*
exclude_files:
- /var/log/containers/filebeat-*
- /var/log/containers/fluent-bit-*
- /var/log/containers/logstash-*
- /var/log/containers/logdna*
parsers:
- ndjson:
target: ""
overwrite_keys: true
message_key: message
processors:
- add_kubernetes_metadata:
host: ${NODE_NAME}
matchers:
- logs_path:
logs_path: "/var/log/containers/"
however, I was able to get top-level json running a test locally:
filebeat.inputs:
- type: filestream
paths:
- /var/log/aus*
parsers:
- ndjson:
target: ""
add_error_key: true
overwrite_keys: true
message_key: message
output.console:
pretty: true
I also don't see any pertinent logging in the filebeat logs themselves, it looks like this:
INFO [esclientleg] eslegclient/connection.go:284 Attempting to connect to Elasticsearch version 8.3.3
25
2022-08-19T01:20:26.729Z INFO template/load.go:110 Template "30-days-default" already exists and will not be overwritten.
24
2022-08-19T01:20:26.729Z INFO [index-management] idxmgmt/std.go:297 Loaded index template.
23
2022-08-19T01:20:26.732Z INFO [publisher_pipeline_output] pipeline/output.go:151 Connection to backoff(elasticsearch(https://9884b8f3246148afbfcbe768ab9374cc.us-west-2.aws.found.io:443)) established
22
2022-08-19T01:20:35.687Z INFO [input.harvester] log/harvester.go:309 Harvester started for paths: [/var/log/containers/*] {"input_id": "dfeed8c2-3453-41bd-90a1-da7fd7b26a5e", "source": "/var/log/containers/datadog-ccvm2_datadog_agent-666232d7d1237ebba9fae9b381bb7ad80bd99c196081709e7e0d6df30d7a658b.log", "state_id": "native::34751240-66305", "finished": false, "os_id": "34751240-66305", "old_source": "/var/log/containers/datadog-ccvm2_datadog_agent-666232d7d1237ebba9fae9b381bb7ad80bd99c196081709e7e0d6df30d7a658b.log", "old_finished": true, "old_os_id": "34751240-66305", "harvester_id": "984425ab-5db9-4256-b3d9-5a421a014fb3"}
21
2022-08-19T01:20:55.593Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"cfs":{"period":{"us":100000},"quota":{"us":40000}},"id":"/","stats":{"periods":53,"throttled":{"ns":1163381779,"periods":10}}},"cpuacct":{"id":"/","total":{"ns":697481102}},"memory":{"id":"/","mem":{"limit":{"bytes":209715200},"usage":{"bytes":54308864}}}},"cpu":{"system":{"ticks":60,"time":{"ms":61}},"total":{"ticks":280,"time":{"ms":284},"value":280},"user":{"ticks":220,"time":{"ms":223}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":15},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":30284},"version":"7.17.3"},"memstats":{"gc_next":24286336,"memory_alloc":18659104,"memory_sys":33637384,"memory_total":77060296,"rss":129179648},"runtime":{"goroutines":79}},"filebeat":{"events":{"added":45,"done":45},"harvester":{"open_files":3,"running":3,"started":3}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":17,"active":0,"batches":6,"total":17},"read":{"bytes":6160},"type":"elasticsearch","write":{"bytes":29800}},"pipeline":{"clients":1,"events":{"active":0,"filtered":28,"published":17,"retry":9,"total":45},"queue":{"acked":17,"max_events":4096}}},"registrar":{"states":{"current":35,"update":45},"writes":{"success":34,"total":34}},"system":{"cpu":{"cores":4},"load":{"1":0.18,"15":0.22,"5":0.25,"norm":{"1":0.045,"15":0.055,"5":0.0625}}}}}}
20
2022-08-19T01:21:25.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":38,"throttled":{"ns":1648409142,"periods":13}}},"cpuacct":{"total":{"ns":623128294}},"memory":{"mem":{"usage":{"bytes":1261568}}}},"cpu":{"system":{"ticks":80,"time":{"ms":24}},"total":{"ticks":300,"time":{"ms":24},"value":300},"user":{"ticks":220}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":15},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":60285},"version":"7.17.3"},"memstats":{"gc_next":24286336,"memory_alloc":21928344,"memory_sys":4456448,"memory_total":80329536,"rss":130711552},"runtime":{"goroutines":79}},"filebeat":{"events":{"added":4,"done":4},"harvester":{"open_files":3,"running":3}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":4,"active":0,"batches":4,"total":4},"read":{"bytes":2189},"write":{"bytes":11452}},"pipeline":{"clients":1,"events":{"active":0,"published":4,"total":4},"queue":{"acked":4}}},"registrar":{"states":{"current":35,"update":4},"writes":{"success":4,"total":4}},"system":{"load":{"1":0.11,"15":0.21,"5":0.23,"norm":{"1":0.0275,"15":0.0525,"5":0.0575}}}}}}
19
2022-08-19T01:21:55.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":33,"throttled":{"ns":1551736293,"periods":12}}},"cpuacct":{"total":{"ns":615573051}},"memory":{"mem":{"usage":{"bytes":1744896}}}},"cpu":{"system":{"ticks":90,"time":{"ms":12}},"total":{"ticks":320,"time":{"ms":25},"value":320},"user":{"ticks":230,"time":{"ms":13}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":15},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":90286},"version":"7.17.3"},"memstats":{"gc_next":23749568,"memory_alloc":12512656,"memory_total":82098904,"rss":131874816},"runtime":{"goroutines":79}},"filebeat":{"events":{"added":2,"done":2},"harvester":{"open_files":3,"running":3}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":2,"active":0,"batches":2,"total":2},"read":{"bytes":1094},"write":{"bytes":5726}},"pipeline":{"clients":1,"events":{"active":0,"published":2,"total":2},"queue":{"acked":2}}},"registrar":{"states":{"current":35,"update":2},"writes":{"success":2,"total":2}},"system":{"load":{"1":0.13,"15":0.2,"5":0.22,"norm":{"1":0.0325,"15":0.05,"5":0.055}}}}}}
18
2022-08-19T01:22:25.593Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":37,"throttled":{"ns":2112483487,"periods":13}}},"cpuacct":{"total":{"ns":625012768}},"memory":{"mem":{"usage":{"bytes":667648}}}},"cpu":{"system":{"ticks":110,"time":{"ms":15}},"total":{"ticks":340,"time":{"ms":18},"value":340},"user":{"ticks":230,"time":{"ms":3}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":15},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":120284},"version":"7.17.3"},"memstats":{"gc_next":23749568,"memory_alloc":15019520,"memory_total":84605768,"rss":132141056},"runtime":{"goroutines":79}},"filebeat":{"events":{"added":3,"done":3},"harvester":{"open_files":3,"running":3}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":3,"active":0,"batches":3,"total":3},"read":{"bytes":1642},"write":{"bytes":8589}},"pipeline":{"clients":1,"events":{"active":0,"published":3,"total":3},"queue":{"acked":3}}},"registrar":{"states":{"current":35,"update":3},"writes":{"success":3,"total":3}},"system":{"load":{"1":0.08,"15":0.2,"5":0.2,"norm":{"1":0.02,"15":0.05,"5":0.05}}}}}}
17
2022-08-19T01:22:55.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":37,"throttled":{"ns":1356922020,"periods":12}}},"cpuacct":{"total":{"ns":607688534}},"memory":{"mem":{"usage":{"bytes":233472}}}},"cpu":{"system":{"ticks":110,"time":{"ms":7}},"total":{"ticks":350,"time":{"ms":18},"value":350},"user":{"ticks":240,"time":{"ms":11}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":15},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":150283},"version":"7.17.3"},"memstats":{"gc_next":23749568,"memory_alloc":17418656,"memory_total":87004904,"rss":132358144},"runtime":{"goroutines":79}},"filebeat":{"events":{"added":3,"done":3},"harvester":{"open_files":3,"running":3}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":3,"active":0,"batches":3,"total":3},"read":{"bytes":1640},"write":{"bytes":8589}},"pipeline":{"clients":1,"events":{"active":0,"published":3,"total":3},"queue":{"acked":3}}},"registrar":{"states":{"current":35,"update":3},"writes":{"success":3,"total":3}},"system":{"load":{"1":0.04,"15":0.19,"5":0.18,"norm":{"1":0.01,"15":0.0475,"5":0.045}}}}}}
16
2022-08-19T01:23:25.593Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":47,"throttled":{"ns":1776686610,"periods":13}}},"cpuacct":{"total":{"ns":626207689}},"memory":{"mem":{"usage":{"bytes":1019904}}}},"cpu":{"system":{"ticks":140,"time":{"ms":23}},"total":{"ticks":390,"time":{"ms":27},"value":390},"user":{"ticks":250,"time":{"ms":4}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":15},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":180286},"version":"7.17.3"},"memstats":{"gc_next":24207184,"memory_alloc":22237816,"memory_total":91824064,"rss":133107712},"runtime":{"goroutines":79}},"filebeat":{"events":{"added":8,"done":8},"harvester":{"open_files":3,"running":3}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":8,"active":0,"batches":8,"total":8},"read":{"bytes":4330},"write":{"bytes":22702}},"pipeline":{"clients":1,"events":{"active":0,"published":8,"total":8},"queue":{"acked":8}}},"registrar":{"states":{"current":35,"update":8},"writes":{"success":8,"total":8}},"system":{"load":{"1":0.03,"15":0.18,"5":0.16,"norm":{"1":0.0075,"15":0.045,"5":0.04}}}}}}
15
2022-08-19T01:23:55.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":35,"throttled":{"ns":2011123706,"periods":12}}},"cpuacct":{"total":{"ns":618946143}},"memory":{"mem":{"usage":{"bytes":339968}}}},"cpu":{"system":{"ticks":160,"time":{"ms":22}},"total":{"ticks":420,"time":{"ms":30},"value":420},"user":{"ticks":260,"time":{"ms":8}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":15},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":210284},"version":"7.17.3"},"memstats":{"gc_next":24371808,"memory_alloc":13824696,"memory_total":93665752,"rss":133107712},"runtime":{"goroutines":79}},"filebeat":{"events":{"added":2,"done":2},"harvester":{"open_files":3,"running":3}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":2,"active":0,"batches":2,"total":2},"read":{"bytes":1093},"write":{"bytes":5726}},"pipeline":{"clients":1,"events":{"active":0,"published":2,"total":2},"queue":{"acked":2}}},"registrar":{"states":{"current":35,"update":2},"writes":{"success":2,"total":2}},"system":{"load":{"1":0.01,"15":0.17,"5":0.14,"norm":{"1":0.0025,"15":0.0425,"5":0.035}}}}}}
14
2022-08-19T01:24:05.713Z INFO [input.harvester] log/harvester.go:309 Harvester started for paths: [/var/log/containers/*] {"input_id": "dfeed8c2-3453-41bd-90a1-da7fd7b26a5e", "source": "/var/log/containers/kube-proxy-tb5dx_kube-system_kube-proxy-c8f7419322880d172a8539cc4245b145e78958fba6d1304ea8c79541c7bb681a.log", "state_id": "native::37753109-66305", "finished": false, "os_id": "37753109-66305", "old_source": "/var/log/containers/kube-proxy-tb5dx_kube-system_kube-proxy-c8f7419322880d172a8539cc4245b145e78958fba6d1304ea8c79541c7bb681a.log", "old_finished": true, "old_os_id": "37753109-66305", "harvester_id": "64e87a67-2e37-44d1-90af-621535ee2602"}
13
2022-08-19T01:24:25.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":43,"throttled":{"ns":1779780774,"periods":12}}},"cpuacct":{"total":{"ns":615261401}},"memory":{"mem":{"usage":{"bytes":393216}}}},"cpu":{"system":{"ticks":180,"time":{"ms":17}},"total":{"ticks":440,"time":{"ms":24},"value":440},"user":{"ticks":260,"time":{"ms":7}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":240286},"version":"7.17.3"},"memstats":{"gc_next":24371808,"memory_alloc":16933256,"memory_total":96774312,"rss":133857280},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":5,"done":5},"harvester":{"open_files":4,"running":4,"started":1}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":4,"active":0,"batches":4,"total":4},"read":{"bytes":2182},"write":{"bytes":11359}},"pipeline":{"clients":1,"events":{"active":0,"filtered":1,"published":4,"total":5},"queue":{"acked":4}}},"registrar":{"states":{"current":35,"update":5},"writes":{"success":5,"total":5}},"system":{"load":{"1":0.01,"15":0.17,"5":0.13,"norm":{"1":0.0025,"15":0.0425,"5":0.0325}}}}}}
12
2022-08-19T01:24:55.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":36,"throttled":{"ns":1752551130,"periods":13}}},"cpuacct":{"total":{"ns":621369622}},"memory":{"mem":{"usage":{"bytes":262144}}}},"cpu":{"system":{"ticks":190,"time":{"ms":11}},"total":{"ticks":460,"time":{"ms":18},"value":460},"user":{"ticks":270,"time":{"ms":7}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":270284},"version":"7.17.3"},"memstats":{"gc_next":24371808,"memory_alloc":19334312,"memory_total":99175368,"rss":133857280},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":3,"done":3},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":3,"active":0,"batches":3,"total":3},"read":{"bytes":1638},"write":{"bytes":8589}},"pipeline":{"clients":1,"events":{"active":0,"published":3,"total":3},"queue":{"acked":3}}},"registrar":{"states":{"current":35,"update":3},"writes":{"success":3,"total":3}},"system":{"load":{"1":0.08,"15":0.17,"5":0.13,"norm":{"1":0.02,"15":0.0425,"5":0.0325}}}}}}
11
2022-08-19T01:25:25.593Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":39,"throttled":{"ns":1730898239,"periods":11}}},"cpuacct":{"total":{"ns":615605647}},"memory":{"mem":{"usage":{"bytes":229376}}}},"cpu":{"system":{"ticks":200,"time":{"ms":16}},"total":{"ticks":480,"time":{"ms":23},"value":480},"user":{"ticks":280,"time":{"ms":7}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":300286},"version":"7.17.3"},"memstats":{"gc_next":24371808,"memory_alloc":22564656,"memory_total":102405712,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":4,"done":4},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":4,"active":0,"batches":4,"total":4},"read":{"bytes":2189},"write":{"bytes":11452}},"pipeline":{"clients":1,"events":{"active":0,"published":4,"total":4},"queue":{"acked":4}}},"registrar":{"states":{"current":35,"update":4},"writes":{"success":4,"total":4}},"system":{"load":{"1":0.05,"15":0.16,"5":0.12,"norm":{"1":0.0125,"15":0.04,"5":0.03}}}}}}
10
2022-08-19T01:25:55.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":45,"throttled":{"ns":1844715270,"periods":14}}},"cpuacct":{"total":{"ns":634787709}},"memory":{"mem":{"usage":{"bytes":-106496}}}},"cpu":{"system":{"ticks":220,"time":{"ms":15}},"total":{"ticks":510,"time":{"ms":28},"value":510},"user":{"ticks":290,"time":{"ms":13}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":330284},"version":"7.17.3"},"memstats":{"gc_next":24429776,"memory_alloc":13823520,"memory_total":104358424,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":2,"done":2},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":2,"active":0,"batches":2,"total":2},"read":{"bytes":1097},"write":{"bytes":5726}},"pipeline":{"clients":1,"events":{"active":0,"published":2,"total":2},"queue":{"acked":2}}},"registrar":{"states":{"current":35,"update":2},"writes":{"success":2,"total":2}},"system":{"load":{"1":0.03,"15":0.16,"5":0.11,"norm":{"1":0.0075,"15":0.04,"5":0.0275}}}}}}
9
2022-08-19T01:26:25.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":43,"throttled":{"ns":1841492677,"periods":13}}},"cpuacct":{"total":{"ns":626716708}},"memory":{"mem":{"usage":{"bytes":139264}}}},"cpu":{"system":{"ticks":230,"time":{"ms":15}},"total":{"ticks":520,"time":{"ms":18},"value":520},"user":{"ticks":290,"time":{"ms":3}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":360283},"version":"7.17.3"},"memstats":{"gc_next":24429776,"memory_alloc":16218976,"memory_total":106753880,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":3,"done":3},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":3,"active":0,"batches":3,"total":3},"read":{"bytes":1639},"write":{"bytes":8589}},"pipeline":{"clients":1,"events":{"active":0,"published":3,"total":3},"queue":{"acked":3}}},"registrar":{"states":{"current":35,"update":3},"writes":{"success":3,"total":3}},"system":{"load":{"1":0.02,"15":0.15,"5":0.09,"norm":{"1":0.005,"15":0.0375,"5":0.0225}}}}}}
8
2022-08-19T01:26:55.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":45,"throttled":{"ns":1606386650,"periods":11}}},"cpuacct":{"total":{"ns":610399638}},"memory":{"mem":{"usage":{"bytes":49152}}}},"cpu":{"system":{"ticks":250,"time":{"ms":18}},"total":{"ticks":550,"time":{"ms":20},"value":550},"user":{"ticks":300,"time":{"ms":2}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":390285},"version":"7.17.3"},"memstats":{"gc_next":24429776,"memory_alloc":18887096,"memory_total":109422000,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":4,"done":4},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":4,"active":0,"batches":3,"total":4},"read":{"bytes":1673},"write":{"bytes":10967}},"pipeline":{"clients":1,"events":{"active":0,"published":4,"total":4},"queue":{"acked":4}}},"registrar":{"states":{"current":35,"update":4},"writes":{"success":3,"total":3}},"system":{"load":{"1":0.11,"15":0.16,"5":0.11,"norm":{"1":0.0275,"15":0.04,"5":0.0275}}}}}}
7
2022-08-19T01:27:25.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":42,"throttled":{"ns":1917792907,"periods":12}}},"cpuacct":{"total":{"ns":618175197}},"memory":{"mem":{"usage":{"bytes":-40960}}}},"cpu":{"system":{"ticks":260,"time":{"ms":11}},"total":{"ticks":570,"time":{"ms":20},"value":570},"user":{"ticks":310,"time":{"ms":9}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":420285},"version":"7.17.3"},"memstats":{"gc_next":24429776,"memory_alloc":21686192,"memory_total":112221096,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":4,"done":4},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":4,"active":0,"batches":4,"total":4},"read":{"bytes":2190},"write":{"bytes":11452}},"pipeline":{"clients":1,"events":{"active":0,"published":4,"total":4},"queue":{"acked":4}}},"registrar":{"states":{"current":35,"update":4},"writes":{"success":4,"total":4}},"system":{"load":{"1":0.07,"15":0.15,"5":0.1,"norm":{"1":0.0175,"15":0.0375,"5":0.025}}}}}}
6
2022-08-19T01:27:55.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":41,"throttled":{"ns":2338412301,"periods":13}}},"cpuacct":{"total":{"ns":627576885}},"memory":{"mem":{"usage":{"bytes":98304}}}},"cpu":{"system":{"ticks":270,"time":{"ms":10}},"total":{"ticks":590,"time":{"ms":29},"value":590},"user":{"ticks":320,"time":{"ms":19}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":450285},"version":"7.17.3"},"memstats":{"gc_next":24290448,"memory_alloc":13945856,"memory_total":114374552,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":2,"done":2},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":2,"active":0,"batches":2,"total":2},"read":{"bytes":1093},"write":{"bytes":5726}},"pipeline":{"clients":1,"events":{"active":0,"published":2,"total":2},"queue":{"acked":2}}},"registrar":{"states":{"current":35,"update":2},"writes":{"success":2,"total":2}},"system":{"load":{"1":0.04,"15":0.14,"5":0.09,"norm":{"1":0.01,"15":0.035,"5":0.0225}}}}}}
5
2022-08-19T01:28:25.593Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":41,"throttled":{"ns":1693147588,"periods":12}}},"cpuacct":{"total":{"ns":624799245}},"memory":{"mem":{"usage":{"bytes":237568}}}},"cpu":{"system":{"ticks":280,"time":{"ms":7}},"total":{"ticks":620,"time":{"ms":20},"value":620},"user":{"ticks":340,"time":{"ms":13}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":480284},"version":"7.17.3"},"memstats":{"gc_next":24290448,"memory_alloc":16313608,"memory_total":116742304,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":4,"done":4},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":4,"active":0,"batches":3,"total":4},"read":{"bytes":1667},"write":{"bytes":10966}},"pipeline":{"clients":1,"events":{"active":0,"published":4,"total":4},"queue":{"acked":4}}},"registrar":{"states":{"current":35,"update":4},"writes":{"success":3,"total":3}},"system":{"load":{"1":0.02,"15":0.14,"5":0.08,"norm":{"1":0.005,"15":0.035,"5":0.02}}}}}}
4
2022-08-19T01:28:55.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":38,"throttled":{"ns":1893888553,"periods":13}}},"cpuacct":{"total":{"ns":626996551}},"memory":{"mem":{"usage":{"bytes":8192}}}},"cpu":{"system":{"ticks":290,"time":{"ms":12}},"total":{"ticks":640,"time":{"ms":20},"value":640},"user":{"ticks":350,"time":{"ms":8}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":510284},"version":"7.17.3"},"memstats":{"gc_next":24290448,"memory_alloc":18989576,"memory_total":119418272,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":3,"done":3},"harvester":{"open_files":4,"running":4}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":3,"active":0,"batches":3,"total":3},"read":{"bytes":1641},"write":{"bytes":8589}},"pipeline":{"clients":1,"events":{"active":0,"published":3,"total":3},"queue":{"acked":3}}},"registrar":{"states":{"current":35,"update":3},"writes":{"success":3,"total":3}},"system":{"load":{"1":0.01,"15":0.13,"5":0.07,"norm":{"1":0.0025,"15":0.0325,"5":0.0175}}}}}}
3
2022-08-19T01:29:05.750Z INFO [input.harvester] log/harvester.go:309 Harvester started for paths: [/var/log/containers/*] {"input_id": "dfeed8c2-3453-41bd-90a1-da7fd7b26a5e", "source": "/var/log/containers/web-backend-deployment-6c84967d8d-k6xr6_zed_app-494ffb87e3921ede2ae920bc811d91c2138db17dd057b66268560dd5cd7ad448.log", "state_id": "native::5774094-66305", "finished": false, "os_id": "5774094-66305", "old_source": "/var/log/containers/web-backend-deployment-6c84967d8d-k6xr6_zed_app-494ffb87e3921ede2ae920bc811d91c2138db17dd057b66268560dd5cd7ad448.log", "old_finished": true, "old_os_id": "5774094-66305", "harvester_id": "21441a3f-3f04-46a3-a75e-d11c182c2625"}
2
2022-08-19T01:29:10.735Z INFO [input.harvester] log/harvester.go:340 File is inactive. Closing because close_inactive of 5m0s reached. {"input_id": "dfeed8c2-3453-41bd-90a1-da7fd7b26a5e", "source": "/var/log/containers/kube-proxy-tb5dx_kube-system_kube-proxy-c8f7419322880d172a8539cc4245b145e78958fba6d1304ea8c79541c7bb681a.log", "state_id": "native::37753109-66305", "finished": false, "os_id": "37753109-66305", "old_source": "/var/log/containers/kube-proxy-tb5dx_kube-system_kube-proxy-c8f7419322880d172a8539cc4245b145e78958fba6d1304ea8c79541c7bb681a.log", "old_finished": true, "old_os_id": "37753109-66305", "harvester_id": "64e87a67-2e37-44d1-90af-621535ee2602"}
1
2022-08-19T01:29:25.592Z INFO [monitoring] log/log.go:184 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cgroup":{"cpu":{"stats":{"periods":45,"throttled":{"ns":1880789215,"periods":13}}},"cpuacct":{"total":{"ns":635972040}},"memory":{"mem":{"usage":{"bytes":61440}}}},"cpu":{"system":{"ticks":310,"time":{"ms":20}},"total":{"ticks":670,"time":{"ms":38},"value":670},"user":{"ticks":360,"time":{"ms":18}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":16},"info":{"ephemeral_id":"b955f134-d927-4036-a625-a5d9d2b4c577","uptime":{"ms":540284},"version":"7.17.3"},"memstats":{"gc_next":24725872,"memory_alloc":12670848,"memory_total":123239712,"rss":134115328},"runtime":{"goroutines":84}},"filebeat":{"events":{"added":19,"done":19},"harvester":{"closed":1,"open_files":4,"running":4,"started":1}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":17,"active":0,"batches":4,"total":17},"read":{"bytes":2307},"write":{"bytes":50005}},"pipeline":{"clients":1,"events":{"active":0,"filtered":2,"published":17,"total":19},"queue":{"acked":17}}},"registrar":{"states":{"current":35,"update":19},"writes":{"success":6,"total":6}},"system":{"load":{"1":0.2,"15":0.14,"5":0.11,"norm":{"1":0.05,"15":0.035,"5":0.0275}}}}}}
and surfacing logs that look like
{
"_index": "logs-app-web-backend-2022.08.19",
"_id": "ZnK3s4IBGrhScMFh2dfC",
"_version": 1,
"_score": 0,
"_source": {
"@timestamp": "2022-08-19T01:29:01.161Z",
"log": {
"file": {
"path": "/var/log/containers/web-backend-deployment-6c84967d8d-k6xr6_zed_app-494ffb87e3921ede2ae920bc811d91c2138db17dd057b66268560dd5cd7ad448.log"
},
"offset": 532271
},
"stream": "stdout",
"container": {
"image": {
"name": "928657068455.dkr.ecr.us-west-2.amazonaws.com/web-backend:99b346d87d543a854c2f5955972fc7abf78a7570"
},
"id": "494ffb87e3921ede2ae920bc811d91c2138db17dd057b66268560dd5cd7ad448",
"runtime": "docker"
},
"host": {
"name": "filebeat-filebeat-m2f6q"
},
"ecs": {
"version": "1.12.0"
},
"message": "{\"email_id\":\"email-live-7f415f34-32c1-4926-8277-f0baa8c90cd0\",\"level\":\"info\",\"message\":\"sent successfully\",\"request_id\":\"request-id-live-2f63d861-3f59-4370-88bf-001caefd2cc3\",\"status_code\":200,\"traceId\":\"6afa1be77646ffb2f44831d1ca8c9891\",\"user_id\":\"user-live-7d42d83f-ec36-490d-bd43-ae2ef5b406d0\"}",
"input": {
"type": "container"
},
"kubernetes": {
"namespace_labels": {
"kubernetes_io/metadata_name": "zed",
"app_kubernetes_io/instance": "zed-remote-dev",
"dev_stytch_com/user": "zed"
},
(many more kubernetes fields) ...
is that the message json here is stringified an issue? should I be combining this with the decode json step?