This message was deleted.
# support
s
This message was deleted.
j
I tried adding this to the operators:
Copy code
- type: json_parser
          if: 'body startsWith "{"'
          parse_from: body
          parse_to: attributes.body
But no
attributes.body
field appears anywhere
v
@nitya-signoz can help here
n
Yeah you will have to use json parser, based on your log line you migh have to use a regex parse if there are non json elements in your log line ex:- https://github.com/SigNoz/logs-benchmark/blob/0b2451e6108d8fa5fdd5808c4e174bd52b9d55d3/signoz/signoz-client/otel-collector-config.yaml#L9