SigNoz / signoz

SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
https://signoz.io
Other
18.99k stars 1.24k forks source link

Kubernetes pods logs are not being parsed #1942

Closed pantoninho closed 1 year ago

pantoninho commented 1 year ago

Bug description

Kubernetes pods logs are not being parsed. Their content is included in the body property instead of being parsed. In the screenshot we can see span_id and trace_id are not being extracted from the log message.

image

Expected behavior

Logs content should be parsed and values like trace_id and span_id should not be empty.

How to reproduce

  1. Deploy Signoz helm chart into a kubernetes cluster
  2. Deploy a fastify (nodejs webserver) application, which uses pino as its logger, with opentelemetry auto-instrumentation
  3. See logs in the frontend

Version information

Thank you for your bug report – we love squashing them!

welcome[bot] commented 1 year ago

Thanks for opening this issue. A team member should give feedback soon. In the meantime, feel free to check out the contributing guidelines.

nityanandagohain commented 1 year ago

You will have to parse them using different operators that are available https://signoz.io/docs/userguide/logs/#operators-for-parsing-and-manipulating-logs

Here is an example https://github.com/SigNoz/logs-benchmark/blob/5c1990d8637beee6326dbcb6f376ed268f540246/signoz/signoz-client/otel-collector-config.yaml#L22

pranay01 commented 1 year ago

@pantoninho Can you check and confirm if above instructions are able to solve your issue?

pantoninho commented 1 year ago

I'm sorry for the late response but I can confirm the above instructions solve my issue.

Closing the issue. Thank you!