Logs SigNoz Cloud Troubleshooting

These are instructions for logs troubleshooting for SigNoz Cloud.

Q. In java my mdc attributes are not visible in SigNoz

Toggle for answer

You can get your mdc attributes by using the appender settings and passing it as -D<property>=<value> format.

For example, for logback you can use otel.instrumentation.logback-appender.experimental.capture-mdc-attributes=* and for log4j you can use otel.instrumentation.log4j-appender.experimental.capture-mdc-attributes=*. Checkout this documentation for more system properties.

Toggle for answer
  • If you are collecting application logs from file then make sure that you are emitting the trace_id and span_id to those logs.
  • Once you have trace_id and span_id in your logs, you can parse them using pipelines trace parser - documentation here

Q. I want to extract trace_id and span_id from my log line

Toggle for answer

You can extract these using the logs pipelines trace parser - documentation here

Q.I want to extract a attribute from my log line

Toggle for answer

The best way to do this is using Logs Pipeline. You can follow these two Docs:

Q. I am sending logs but my logs are not visible on SigNoz

Toggle for answer

Check by adding a console exporter on application level if you are using SDK else on a local collector level. Once the above is checked and if you are still facing issue then reach out to us on Intercom - the chatbox at the bottom right corner of your SigNoz Cloud interface.

Q. How to increase the retention period of logs from x days to y days?

Toggle for answer

Reach out to us on Intercom - the chatbox at the bottom right corner of your SigNoz Cloud interface.

Was this page helpful?