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.
Jul 06, 2023 (5 months ago)
Charan
06:01 AMnitya-signoz
06:11 AMCharan
06:49 AMCharan
06:52 AMCharan
06:54 AMCharan
06:56 AMnitya-signoz
07:56 AMYou can check out this example on how to parse your trace IDhttps://github.com/SigNoz/logs-benchmark/blob/0b2451e6108d8fa5fdd5808c4e174bd52b9d55d3/signoz/signoz-client/otel-collector-config.yaml#L22
Charan
09:13 AMi 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?
Charan
12:38 PMnitya-signoz
12:41 PMJul 07, 2023 (5 months ago)
Charan
05:46 AMCharan
06:45 AMPrashant
06:59 AMlogtransform/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
Indexed 1023 threads (61% resolved)
Similar Threads
Extracting Custom Fields as Attributes from Log in SigNoz
Harald wants to have custom fields from their body parsed as attributes in the SigNoz logger. They have tried implementing suggestions from nitya-signoz and Prashant, but the issue remains unsolved due to a potential race condition encountered while executing the code. They have provided a full example using Kind for further assistance.
Configuring trace_id and span_id Extraction in Node App Logs
Saad was struggling to extract trace_id and span_id from their node app logs and asked for help. nitya-signoz instructed them to add the processor to the services, and this solved the issue.
Adding Labels to Logs in SigNoz Using Pipelines
Tarek was trying to add labels from a JSON body to SigNoz logs. nitya-signoz and Shivanshu helped by providing pipeline examples and configurations. nitya-signoz's solution eventually resolved the issue.
JSON Parsing Issue with Logs in Signoz
Androw had trouble parsing logs with JSON in Signoz. nitya-signoz suggested changes to config, which resolved the issue after Androw added the missing field 'logsCollection'.
SigNoz Log Format and JSON Parsing
Luke asked about the log format for SigNoz and using operators to convert loggers. nitya-signoz shared resources about specifications and recommended using operators. Travis had issues with JSON parsing but resolved them by updating `otel-agent-config.yaml`.