I was looking through the docs about the logs that fluentd itself generates:
https://docs.fluentd.org/v0.12/articles/logging
When I look at the logs it's generating, I see lines like this:
2017-12-19 20:21:29 +0000 [warn]: buffer flush took longer time than slow_flush_log_threshold: plugin_id="object:3fcf14b0f6f8" elapsed_time=38.915493082 slow_flush_log_threshold=20.0
Is it possible to configure fluentd to output its own logs in JSON format?
I'm forwarding all the logs to a EFK stack, and it would be great if those values like elapsed_time and slow_flush_log_threshold were something I could easily index and search on.
In theory I could try to reverse-engineer regexs to parse those logs and extract the values, but it would be a lot easier to just get those logs in a structured way.
Thanks,
Jon