Q. I can't see related logs for traces.
A. Make sure your logs include trace_id and span_id.
Show detailed steps
- If you are collecting application logs from file, ensure you emit the
trace_idandspan_idto those logs. - Once you have
trace_idandspan_idin your logs, parse them using the pipelines trace parser. See documentation here.
Q. I want to extract trace_id and span_id from my log line
A. You can extract these using the logs pipelines trace parser. See documentation here.
Q. I want to extract an attribute from my log line
A. Use Logs Pipeline to parse and extract attributes.
Show detailed steps
The best way to do this is using Logs Pipeline. Refer to:
Q. How to filter logs of same application/service from different hosts?
A. You can identify them by adding a resource attribute.
Show detailed steps
If you have a application/service which is emitting similar kind of logs but there are multiple instances of it running on different hosts you can identify them by adding a resource attribute.
There are different ways to add a resource attribute.
- By passing it as an environment variable if you are using the opentelemetry SDK or auto-instrumentationReplace the value of
OTEL_RESOURCE_ATTRIBUTES=service.name=<service_name>,host.name=<host_name><service_name>with the actual service name and<host_name>with the actual hostname - If you have a otel collector running on each host you can add a processor to add the hostname.replace the value of
processors: resource/add_hostname: attributes: - key: host.name value: <host_name> action: upsert ... service: logs: processors: [resource/add_hostname, batch]<host_name>with the actual hostname
Q. I am sending logs but my logs are not visible on SigNoz
A. Check your exporter and collector configuration.
Show detailed troubleshooting steps
- Add a console exporter at the application level (if using SDK) or at the local collector level.
- If the issue persists, reach out to us via 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?
A. If you are using SigNoz Cloud, contact SigNoz support via the chatbox. Or if you are self-hosting, you can change the retention period in the SigNoz UI under Settings > Logs Retention.
Q. In java my mdc attributes are not visible in SigNoz
A. Ensure your logging configuration includes MDC pattern and OpenTelemetry is configured to capture MDC attributes.
Show detailed steps
For example, for logback use: otel.instrumentation.logback-appender.experimental.capture-mdc-attributes=* For log4j use: otel.instrumentation.log4j-appender.experimental.capture-mdc-attributes=* See [this documentation][def] for more system properties.
Q. How do I filter logs using the Query Builder?
A. You can use the Query Builder to filter logs by specific attributes, such as service name or severity.
Show detailed steps
- Navigate to the Logs tab in the side navigation bar to open the Logs Explorer.
- In the query input area, click inside the text box that says "Enter your filter query".
- Type your query using the autocomplete suggestions (e.g.,
severity_text = 'ERROR'). - Alternatively, use the Filters for sidebar on the left to select quick filters like Severity Text or Service Name.
- Click the blue Run Query button (or press
Cmd+Enter/Ctrl+Enter) at the top right to refresh the results.
Q. How do I add or remove columns in the log table view?
A. You can customize columns in the List or Table view using the Settings menu to focus on relevant attributes.
Show detailed steps
- Ensure your layout view is set to List View or Table.
- Click the Settings icon (slider icon) located at the top right of the logs area.
- In the popover that appears, locate the COLUMNS section.
- To remove a column, click the 'x' next to the field name.
- To add a new column, click the '+' button next to the COLUMNS label.
- Search for a field in the search box and click on the desired attribute to add it as a column in your view.
Q. My log queries are running slowly or taking several minutes to complete. How can I optimize performance?
A. There are several strategies to improve log query performance significantly.
Show performance optimization strategies
1. Use Resource Attributes in Filters
Moving commonly used attributes from regular attributes to resource attributes can drastically improve search performance. For example, if you're filtering by app, move it from attributes.app to resource.app using the move operator in log pipelines.
2. Enable Data Flattening and Indexing
For nested attributes like body.step.<any attribute>, you'll need to:
- Enable data flattening first
- Request indexing of commonly used attributes by reaching out to SigNoz Cloud Support
- This allows nested fields to exist as their own attributes outside of the body, making queries more performant
3. Reduce Query Time Range
Limiting the time range of your query can significantly improve performance by reducing the amount of data that needs to be searched.
Implementation Steps
To optimize your log queries:
- Identify commonly used filter attributes in your queries
- Use log pipelines to move these attributes to resource attributes using the move operator (only when the attribute should be a resource attribute)
- If you need to query nested attributes, enable flattening and request indexing for those specific fields
- Adjust your query time ranges to be as narrow as possible while still capturing the data you need
These optimizations work together to reduce query execution time from minutes to seconds, making your log analysis much more efficient.
Q. How can I view the full details and context of a specific log line?
A. You can click on any log line to open the Log details drawer, which provides a detailed breakdown and surrounding context.
Show detailed steps
- Click on any log line in the result list.
- A Log details drawer will open on the right side of the screen.
- Use the Overview tab to see a readable list of all Attributes.
- Switch to the JSON tab to see the raw log structure.
- Click the Context tab to view logs that occurred immediately before and after the selected log line, which is highly useful for debugging sequential events.
Q. How do I save a view or query for later use?
A. You can save your current configuration (query, filters, columns, and layout) as a View for quick access.
Show detailed steps
- Once you have configured your query, filters, and columns, find the Views section or Save View functionality.
- Provide a descriptive name to save your configuration.
- You can access saved views from the Views tab or from the Explorer sidebar to quickly switch between different commonly used configurations.
Q. How do I navigate from a log line to its corresponding trace?
A. If a log has a trace_id associated with it, you can navigate directly to the trace details. To learn how to add trace_id to your logs, see our guide on Correlating Traces and Logs.
Show detailed steps
- In the Logs Explorer, click on any log line that has a
trace_idto open the Log details drawer on the right side of the screen. - In the Overview tab of the log details drawer, locate the
trace_idfield under the Attributes section. - Click the link icon (which looks like a small chain link) immediately to the right of the
trace_idlabel. - Clicking this icon will navigate you directly to the corresponding Trace Details page.