Rob Ellison
Edited

Support for Structured Logging

In order to better analyse logs in Datadog we need the logs to be in JSON format. Is there any option to be able to support this in the collector and enricher? It would be great to have more flexibility with this if there were better logging options. The current log format makes it difficult to view the full stack trace

https://docs.datadoghq.com/logs/log_collection/java/?tab=log4j#configure-the-datadog-agent

Thanks,

Rob

0 1 3
keara will

That’s a great point. Having structured JSON logging would make analysis in Datadog much easier and more consistent. Many teams integrate similar solutions through custom log formatters or middleware before ingestion. It’s a bit like working with a buyer's agent, who organizes and filters the most relevant details so you can make clear decisions without missing context.