Support log json log format #8815
Labels
area/elasticsearch
area/json
json and json_v2 parser/serialiser related
area/logging
feature request
Requests for new plugin and for new features to existing plugins
Feature Request
Opening a feature request kicks off a discussion.
Proposal:
enable json output for log
Current behavior:
ubuntu@ubuntu-lts:~$ kubectl -n intam logs telegraf-f494bc567-zmgq9 |head -50
2020-12-04T04:02:22Z I! Starting Telegraf
2020-12-04T04:02:22Z I! Using config file: /etc/telegraf/telegraf.conf
2020-12-04T04:02:22Z I! Loaded inputs: cpu internal internal kafka_consumer
2020-12-04T04:02:22Z I! Loaded aggregators:
2020-12-04T04:02:22Z I! Loaded processors: enum
2020-12-04T04:02:22Z I! Loaded outputs: prometheus_client kafka kairosdb health
2020-12-04T04:02:22Z I! Tags enabled:
2020-12-04T04:02:22Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"", Flush Interval:10s
2020-12-04T04:02:22Z D! [agent] Initializing plugins
2020-12-04T04:02:22Z D! [agent] Connecting outputs
....
Desired behavior:
in a Kubernetes infrastructure to be able to enable log JSON format support to handle multiline output.
Use case:
log can be across multi-line especially in debug mode. When stored in a backend (e.g. elasticsearch) each line creates an entry.
Thanks
Nicolas
The text was updated successfully, but these errors were encountered: