How to Use SigNoz for Production Log Analysis

How To Use SigNoz for Production Log Analysis

Written by: Nimesh Chakravarthi, Co-founder & CTO, Struct | Last updated: September 11, 2026

Key Takeaways

  • SigNoz ingests logs natively via OpenTelemetry alongside traces and metrics, treating them as a first-class signal for unified observability.
  • Structured JSON logs with proper resource attributes (service.name, service.version, deployment.environment) enable fast filtering and reduce post-incident analysis time from hours to minutes.
  • Use the OpenTelemetry Collector DaemonSet with memory_limiter first, k8sattributes enrichment, and filter/drop processors to control volume and prevent billing surprises before logs reach SigNoz.
  • Use SigNoz Log Pipelines for parsing (Grok, JSON, Trace Parser) and Logs Explorer for severity, attribute, and trace_id queries, then click trace_id to jump directly into correlated traces for root-cause analysis.
  • SigNoz gets you to root cause; confirming that an incident is actually resolved after a fix requires separate verification against logs, traces, and metrics.

How SigNoz Supports Production Log Analysis Natively

Yes. Logs are a first-class signal in SigNoz alongside traces and metrics, ingested natively via OpenTelemetry with a unified data model. The real question is how you configure the pipeline so logs survive production traffic without silent drops, cost explosions, or malformed records that never parse. GitHub Discussion #1650, titled “Is logging available?”, shows a user troubleshooting why logs sent via the OpenTelemetry logger were not appearing in the SigNoz dashboard. Maintainers confirmed logging was available and offered debugging steps, while the user continued to investigate an exporter timeout error.

This guide focuses on the operational layer: Collector backpressure, cardinality explosions, malformed JSON, cost traps, and the gap between “logs are in SigNoz” and “the incident is actually resolved.” For broader context on anomaly detection and trace correlation, see the Logs, Traces & Anomaly Detection hub.

Design Production-Friendly Logs Before Ingestion

Searchability is decided before the log ever reaches SigNoz. Structured JSON with the right resource attributes determines whether you can filter by environment, compare release versions, or isolate a single bad pod.

The OpenTelemetry semantic conventions spec distinguishes resource attributes (which describe the emitting entity and apply to every signal) from signal attributes (which describe the individual event and are set per span, metric, or log). Resource attributes are set once per process and apply to every log record emitted from that process: service.name, service.version, deployment.environment, k8s.namespace.name. Signal attributes are per event: severity_text, trace_id, span_id. Putting service.name on every log record individually wastes bytes and breaks backend grouping. Putting http.request.method on the resource is meaningless because a service handles many methods.

service.name and service.namespace are not interchangeable. service.name is the service’s identifier within its namespace, while service.namespace is the team or domain that owns it. Collapsing both into service.name loses the structure that lets backends group services by team.

A well-formed structured log line for a checkout-api in production:

{ "time_unix_nano": 1725000000000000000, "severity_text": "ERROR", "body": "payment authorization timed out", "resource": { "service.name": "checkout-api", "service.version": "2026.09.01", "deployment.environment": "production", "k8s.namespace.name": "payments" }, "attributes": { "http.route": "POST /api/checkout", "order_id": "ord_4921", "error_code": "PAYMENT_GATEWAY_TIMEOUT", "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736", "span_id": "00f067aa0ba902b7" } }

Without service.name, service.version, deployment.environment, and service.instance.id, you cannot filter by environment, compare release versions, or isolate a single bad pod. Post-incident analysis then takes hours instead of minutes. Getting those attributes onto every record starts with how you collect the logs in the first place.

Collect Production Logs With The OpenTelemetry Collector

Container logs live on the node that produced them, so the Collector has to run where the files are. This requirement makes the DaemonSet model the default for log collection. Each pod tails /var/log/pods/*/*/*.log with the filelog receiver, enriches records with k8sattributes, filters noise, and exports over OTLP to SigNoz. For node-local telemetry such as filelog collection, multiple Collectors on the same node read the same files twice and produce duplicate data, so one DaemonSet pod per node is the correct shape.

The OpenTelemetry Helm chart’s logsCollection preset configures the filelogreceiver to read /var/log/pods/*/*/*.log. Enable it with presets.logsCollection.enabled: true, and set mode explicitly. The recommended value for this preset is daemonset.

The config below shows the full pipeline in order. filelog reads container logs, memory_limiter caps memory first, k8sattributes enriches each record, and filter/drop_debug removes DEBUG noise before export. Note the processor order because memory_limiter must come first:

receivers: otlp: protocols: grpc: endpoint: 0.0.0.0:4317 http: endpoint: 0.0.0.0:4318 filelog: include: - /var/log/pods/*/*/*.log start_at: beginning include_file_path: true include_file_name: false operators: - type: json_parser timestamp: parse_from: attributes.time layout: '%Y-%m-%dT%H:%M:%S.%LZ' processors: memory_limiter: check_interval: 1s limit_percentage: 75 spike_limit_percentage: 15 k8sattributes: auth_type: serviceAccount passthrough: false extract: metadata: - k8s.namespace.name - k8s.pod.name - k8s.pod.uid - k8s.deployment.name - k8s.node.name filter/drop_debug: logs: exclude: match_type: expr expressions: - 'IsMatch(severity_text, "(?i)\b(DEBUG)\b")' batch: timeout: 5s send_batch_size: 8192 exporters: otlp: endpoint: "https://ingest.signoz.io:443" headers: signoz-ingestion-key: "${SIGNOZ_INGESTION_KEY}" service: pipelines: logs: receivers: [otlp, filelog] processors: [memory_limiter, k8sattributes, filter/drop_debug, batch] exporters: [otlp]

The memory_limiter must be first in the pipeline. The container memory limit must exceed limit_mib + spike_limit_mib + 64 MiB. Otherwise the OOM killer terminates the Collector before the limiter sheds load gracefully, creating an observability blackout during the Kubernetes restart backoff window.

Parse Unstructured Logs In SigNoz Log Pipelines

Once logs reach SigNoz, the Collector’s job is done, but many arrive as unstructured text. Log Pipelines are an ordered chain of processors that parse, transform, enrich, and drop logs before storage. When a log matches a pipeline’s filter, each processor runs in sequence.

SigNoz offers ten processors: Regex, Grok, JSON Parser, Trace Parser, Timestamp Parser, Severity Parser, Add, Remove, Move, and Copy. Two concrete examples show how this works in practice.

Nginx Access Log Parsed With The Grok Processor extracts a typed integer HTTP status code:

Pattern: status: %{INT:status_code:int}

By default, Grok extracts strings. Adding :int as a third part to the capture group extracts status_code as an integer. This enables numeric operators (>, <) and use of the value as a metric in dashboards.

Microservice Emitting Nested JSON Parsed With The JSON Parser Processor uses flattening. With Enable Flattening on, parsing { "metadata": { "id": 1 } } sets attributes.metadata.id = 1. The Enable Paths option preserves the full path from root, and the Path Prefix option lets you namespace all flattened keys. For example, prefix parsed yields attributes.parsed.metadata.id.

The Trace Parser processor populates trace_id and span_id for log-to-trace correlation. The Severity Parser maps HTTP status ranges, so 5xx maps numbers 500–599 to ERROR severity.

Cost Trap: Log Pipelines run after ingestion, so they do not reduce billed volume. Use them for parsing and enrichment only. Drop logs at the Collector before they reach SigNoz.

Query SigNoz Logs In Logs Explorer

Logs Explorer gives you List, Time Series, and Table views with a Query Builder that supports exact match, exclusion, IN, LIKE, ILIKE, CONTAINS, and EXISTS operators combined with AND and OR.

Real query syntax for production incident investigation:

  • service.name = 'checkout' AND severity_text IN ('ERROR', 'WARN')
  • body LIKE '%timeout%'
  • trace_id EXISTS isolates logs that carry trace correlation identifiers
  • status = 400 filters by keys inside the body when log bodies are stored as JSON

The frequency chart at the top of the Logs Management Overview helps you spot error spikes and isolate the incident window before writing a single filter. Aggregation is where the query builder earns its keep. Group by service.name to see which service is producing the most errors, then add count() > 1000 in the Having clause to hide the long tail and focus on high-volume groups. Once you have a suspect, Time Shift against one hour ago shows whether the spike is new or has been building.

Logs Explorer supports combining up to ten queries using formulas. For example, (A / B) * 100 where A counts error logs and B counts all logs gives you an error ratio over time.

Emit SigNoz-Friendly Logs From Python

Use the OpenTelemetry Python SDK with the logging instrumentation bridge so every log record inside an active span carries trace_id and span_id. The bridge patches the standard logging module and attaches otelTraceID, otelSpanID, and otelServiceName to every LogRecord.

from opentelemetry.instrumentation.logging import LoggingInstrumentor import logging import json LoggingInstrumentor().instrument(set_logging_format=False) class OtelJsonFormatter(logging.Formatter): def format(self, record): log_record = { "timestamp": self.formatTime(record), "severity_text": record.levelname, "body": record.getMessage(), "trace_id": getattr(record, "otelTraceID", None), "span_id": getattr(record, "otelSpanID", None), "service.name": getattr(record, "otelServiceName", None), } return json.dumps(log_record) handler = logging.StreamHandler() handler.setFormatter(OtelJsonFormatter()) logging.getLogger().addHandler(handler)

Keep two warnings in mind. Passing set_logging_format=True (the default) overwrites a JSON formatter with a printf template, turning structured logs into flat text. Also, logs emitted outside an active span such as startup, background threads, and cron jobs produce trace_id: "0". This behavior is correct. Use getattr(record, "otelTraceID", None) defensively so those lines emit trace_id: null rather than crashing.

Correlate Logs With Traces In SigNoz

Click the trace_id on a log line to jump into the full distributed trace. This is a high-leverage production feature in SigNoz. Binding trace_id into logs can reduce time to root cause for triage incidents from a typical 25–45 minutes to roughly 90–180 seconds.

The jump workflow:

  1. Filter logs by service.name = 'checkout' AND severity_text = 'ERROR'.
  2. Click the trace_id on a failing log line.
  3. Open the correlated trace and identify the slow or failing span.
  4. Pivot back to logs filtered by that span_id for granular context.

The critical failure mode appears when traces are head-sampled too aggressively. If traces are head-sampled at 1%, most trace_id values in logs point at traces that were never stored. The click then resolves to an empty page. Tail sampling with an “always keep if ERROR” rule fixes this. Configure the OTel Collector’s tail_sampling processor with a string_attribute policy on severity = ERROR.

Control Log Volume And Cost In SigNoz

Drop logs at the OpenTelemetry Collector before they reach SigNoz, because ingestion is billed in GB and Log Pipelines run after ingestion. Setting the log level at the source is more effective than Collector-level filtering because it prevents the log from being generated at all. Collector filtering is the fallback when the source cannot be controlled.

Severity decision table:

  • DEBUG is safe to drop in production.
  • INFO should be reviewed before dropping; retain it for key business events.
  • WARN / ERROR should always be retained.
  • Kubernetes health check probes are safe to drop.

The filter processor with OTTL lets you implement these rules:

processors: filter/drop_logs_by_severity_text: logs: exclude: match_type: expr expressions: - 'IsMatch(severity_text, "(?i)\b(DEBUG)\b")' - 'resource.attributes["k8s.pod.name"] == "test-pod"'

The logdedup processor collapses repetitive health-check retries into a single entry. That entry carries log_count, first_observed_timestamp, and last_observed_timestamp, so you keep the frequency and window information without paying for every occurrence. Scope it with OTTL conditions such as severity_number < SEVERITY_NUMBER_WARN to deduplicate only DEBUG and INFO severities. Exclude audit or compliance logs that require per-occurrence timestamps.

Cap oversized bodies with the transform processor:

processors: transform/truncate_logs: log_statements: - context: log statements: - set(body, Substring(body, 0, 4096))

Cardinality Explosions: never put user_id, request_id, or trace_id on metric labels. A single service emitting metrics with unbounded label values can exhaust Collector memory within minutes. Keep high-cardinality dimensions on logs and spans, where high cardinality is acceptable.

Collector Backpressure: monitor otelcol_exporter_queue_size versus otelcol_exporter_queue_capacity, scale up at 60–70% capacity, and alert on the receiver-refused metric for the relevant signal such as otelcol_receiver_refused_spans for traces. If queue size keeps rising proportionally as capacity increases, the bottleneck sits outside the Collector in a saturated backend or network, and adding replicas will worsen the situation.

SigNoz vs. Datadog Cost: SigNoz includes indexing and reading within retention at $0.30/GB. Datadog charges $0.10/GB to ingest and $1.70 per million events for indexing at 15-day retention. Reading archived logs adds a rehydration fee of $0.10 per compressed GB scanned. The table below shows why the billing models diverge. SigNoz bundles indexing and reading into a single per-GB price, while Datadog and Grafana Cloud bill ingest, indexing, and archived-log reads as separate line items.

Platform Ingest + Index Price Indexing Model Reading Archived Logs
SigNoz $0.30/GB (all-in, 15-day default) All keys indexed via columnar store; no separate index fee No rehydration, every log inside retention is directly queryable
Datadog $0.10/GB ingest + $1.70/million events indexed (15-day retention) Ingest and indexing billed separately $0.10/compressed GB scanned rehydration fee
Grafana Cloud (Loki) $0.45/GB ($0.05 process + $0.40 write); retention billed separately at ~$0.10/GB Labels only, log body and high-cardinality fields like trace_id require full-scan LogQL parsing No rehydration fee for archived logs, and its fair use query policy allows querying up to 100X your written logs volume each month at no additional charge; however, because Loki indexes only metadata labels rather than full log text, full-scan queries on unindexed fields can cause latency spikes

A Production Incident Walkthrough: Checkout 500s After A Deploy

An alert fires on a checkout error-rate spike. Here is the exact UI path from alert to root cause.

  1. Open Logs Explorer and set the time window to the deploy window.
  2. Apply the filter service.name = 'checkout' AND severity_text = 'ERROR'.
  3. Read the frequency chart and identify the spike onset relative to the deploy timestamp.
  4. Click a failing log line and read the body: payment authorization timed out, error_code: PAYMENT_GATEWAY_TIMEOUT.
  5. Click the trace_id on that log line to open the full distributed trace.
  6. In the trace view, find the failing span such as payment.charge at 940ms with two red child spans.
  7. Confirm the deploy version via service.version on the resource attributes. The version matches the deploy that preceded the spike.
  8. Pivot back to logs filtered by span_id for the failing span and read the retry count and upstream error message.

Root cause is now confirmed. A new deploy introduced a payment gateway timeout regression. The blast radius is scoped to checkout-api version 2026.09.01 in the production namespace.

SigNoz got you from alert to root cause using logs, traces, and resource attributes. What it does not do is wake up, run that workflow automatically, and confirm the incident is resolved after the rollback. Automate your on-call runbook so this investigation runs before your engineer opens their laptop.

Where SigNoz Logs Stop And Incident Resolution Verification Begins

The walkthrough above ends with a human deciding the blast radius and confirming the rollback worked. That last step, confirming resolution rather than assuming it, is where SigNoz’s job ends and a separate investigation layer begins.

Struct is the investigation layer that sits on top of SigNoz and works alongside it. When an alert fires in Slack or PagerDuty, Struct automatically kicks off an investigation. It queries your SigNoz logs, correlates the trace_id, maps a unified timeline merging logs with traces and metrics, and delivers a dynamically generated dashboard with root cause and suggested fixes before your engineer opens their laptop.

Struct’s Incident Tracker runs a roughly one-minute automated verification loop against observability data to confirm an incident is actually resolved. This is incident resolution verification. Deploy Guard improves alerting quality at the PR and deploy level, before incidents happen.

The proof points are concrete. Customer Arcana cut investigation time from 30 minutes to 2 minutes, reclaims 56 engineer-hours per month, and runs 2,100+ automated investigations monthly. Across customers, Struct reduces triage time by 80%, turning a 45-minute investigation into a 5-minute review. Setup takes 10 minutes. Struct is SOC 2 Type II and HIPAA compliant, and you can see details in the trust and compliance center.

For teams already running SigNoz, Struct closes the loop that SigNoz opens. See also the automated root cause analysis playbook and the alert quality and triage guide.

Frequently Asked Questions

Does SigNoz Support Logs Natively, Or Do I Need A Separate Log Tool?

Yes, logs are a first-class signal in SigNoz. They are ingested natively via OpenTelemetry with a unified data model shared across logs, traces, and metrics. You do not need a separate log tool. SigNoz supports ingestion via the OpenTelemetry Collector, language SDKs, and lift-and-shift from existing agents like FluentBit or Logstash. The Logs Explorer, Log Pipelines, log-based alerts, and log-to-trace correlation are all built into the platform.

Do SigNoz Log Pipelines Reduce My Ingestion Bill?

No. Log Pipelines run after ingestion, so the data has already been billed by the time a pipeline processor touches it. Use pipelines for parsing, enrichment, PII scrubbing, and transformation. To reduce billed volume, drop logs at the OpenTelemetry Collector using the filter processor with OTTL expressions before they reach SigNoz. Setting the correct log level at the application source is even more effective because it prevents the log from being generated at all.

Why Do My Logs Show A Trace ID Of Zero?

The log was emitted outside an active span. This happens for startup logs, background threads, cron jobs, and any code path that runs before the framework’s instrumentation creates a server span. The OpenTelemetry logging bridge attaches otelTraceID only when a span is active; when no span is active, it injects the literal string "0". This behavior is correct. Filter these lines out of correlation views rather than treating them as broken instrumentation.

How Do I Stop Debug Logs From Inflating My SigNoz Bill?

Set the log level at the source first. Configure your logging framework to emit INFO and above in production so DEBUG logs are never generated. When you cannot control the source such as a third-party library or a legacy service, use the OpenTelemetry Collector filter processor as the fallback. The expression IsMatch(severity_text, "(?i)\b(DEBUG)\b") drops DEBUG-level records before they reach SigNoz. For repetitive low-severity logs that you want to count rather than drop entirely, the logdedup processor collapses identical records into one entry carrying log_count.

What Is Incident Resolution Verification?

Incident resolution verification is the automated process of confirming that an incident is actually resolved by checking observability data rather than assuming a fix worked because the alert stopped firing. Alerts stop firing for many reasons: the metric window rolled over, the alerting threshold was temporarily met, or the fix addressed symptoms rather than root cause. True resolution verification requires querying logs, traces, and metrics after a fix is applied and confirming the error rate, latency, and affected service metrics have returned to baseline. Struct’s Incident Tracker runs this verification loop automatically at approximately one-minute intervals, so engineers do not have to manually watch dashboards after a deploy to confirm the incident is closed.

Conclusion: Close The Loop From Logs To Resolution

SigNoz gives you production-grade OpenTelemetry logs with a complete pipeline: structured ingestion via the OpenTelemetry Collector, parsing and enrichment in Log Pipelines, and high-fidelity querying in Logs Explorer with full log-to-trace correlation. Getting that pipeline production-ready requires deliberate configuration, including memory_limiter first, filter before ingestion, tail sampling to preserve error traces, and cardinality discipline on metric labels.

The pipeline is half the job. The other half is the investigation and the verification. SigNoz surfaces the data, while Struct reads it, correlates it, and confirms the incident is resolved automatically before your engineer is fully awake. Struct sits on top of SigNoz as an investigation layer, extending the pipeline you already have.

Let AI run your next on-call investigation to reduce the time your team spends triaging issues, give them their product velocity back, and keep humans focused on fixes instead of manual log sleuthing.

Read Next