Join Slack
Powered by
Hi! I'm wondering what I should do to get my appli...
# support
a
Alex Grönholm
02/13/2023, 3:55 PM
Hi! I'm wondering what I should do to get my application logs parsed as JSON. I've deployed signoz on k8s using the Helm chart. Right now, the JSON body of each log entry just goes to the "log" attribute, without any JSON parsing taking place.
n
nitya-signoz
02/13/2023, 4:13 PM
You can use the JSON parser for this
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/docs/operators/json_parser.md
nitya-signoz
02/13/2023, 4:13 PM
here is an example
https://github.com/SigNoz/logs-benchmark/blob/0b2451e6108d8fa5fdd5808c4e174bd52b9d55d3/signoz/signoz-client/otel-collector-config.yaml#L12
a
Alex Grönholm
02/13/2023, 4:14 PM
thanks, I'll have a look
n
nitya-signoz
02/13/2023, 4:14 PM
You can check our docs for other types of operators
https://signoz.io/docs/userguide/logs/#operators-for-parsing-and-manipulating-logs
3
Views
Open in Slack
Previous
Next