#general

Adding Traceid in Logs and Utilizing Helm for SigNoz Installation

TLDR Charan sought assistance on adding traceid in logs. nitya-signoz advised how to parse it and Prashant suggested modification of the logtransform processor or addition of a new one as a solution.

Powered by Struct AI
13
5mo
Solved
Join the chat
Jul 06, 2023 (5 months ago)
Charan
Photo of md5-1eeee6662f9b6f41f8fdf6b72050170e
Charan
06:01 AM
how to add traceid in logs section????
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
06:11 AM
You will have to parse it as attribute then it will be added to Signoz
Charan
Photo of md5-1eeee6662f9b6f41f8fdf6b72050170e
Charan
06:49 AM
How to parse it?
06:52
Charan
06:52 AM
Already have traceid in selected fields but not getting traceid in traceid field how to solve this issue?
06:54
Charan
06:54 AM
Image 1 for
06:56
Charan
06:56 AM
this is my issue.
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
07:56 AM
Charan
Photo of md5-1eeee6662f9b6f41f8fdf6b72050170e
Charan
09:13 AM
helm repo add signoz https://charts.signoz.io
i have used above chart for signoz installation.
Can you please tell me a way to update using helm command with added parser using set command in helm?
12:38
Charan
12:38 PM
anyupdate??
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
12:41 PM
You will have to create an override.yaml file and add the processor for parsing. Prashant do we have an example which we can share of override.yaml
Jul 07, 2023 (5 months ago)
Charan
Photo of md5-1eeee6662f9b6f41f8fdf6b72050170e
Charan
05:46 AM
Prashant please provide example override.yaml with traceid attribute added.
06:45
Charan
06:45 AM
we are currently using chart version signoz-0.16.2 and app-version 0.20.2
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
06:59 AM
you could either modify the default logtransform/internal processor, or you could add a new processor logtransform/custom as shown in override-values.yaml below:

otelCollector:
  config:
    processors:
      logstransform/custom:
        operators:
          # parse body as json to tmp
          - id: parse_json
            type: json_parser
            parse_from: body
            parse_to: attributes.temp
            output: trace_parse
          ...
    service:
      pipelines:
        logs:
          receivers: [otlp]
          processors: [logstransform/internal, logstransform/custom, batch]
          exporters: [clickhouselogsexporter]

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community