Hi Team , we have currently set up signoz and are ...
# support
u
Hi Team , we have currently set up signoz and are able to see some traces (by using otel sdk with our tracing.js and logger) & logs (using another otel collector with loki reciever configured which then further transports to our vm hosted signoz-collector ). I am currently facing issues, in correlating my logs with my traces, when in the tracing tab i go to see related logs i cant see any results but when i search for just the trace directly in body i can see just the single containing the traceID not the whole log related to the traceID. Example attached in the photos. these are of the same request, 3rd is the actual logs from application console. what is the best way to view the related logs easily.
n
please follow this guide to parse trace details https://signoz.io/docs/logs-pipelines/guides/trace/
u
{ "body": "22/8/2024, 35106 pm debug: 3c7821ee17534c9197557778f5fc1aeb: Upserting with query { _id: '1234567890' } for record {", "id": "2kermF2GF59mtPPbXDWvcAssMuF", "timestamp": "2024-08-22T102106.379427697Z", "attributes": { "app": "app", "container": "app", "filename": "/var/log/pods/dev_kyc-app-55d97f7448-wzj27_65b27b8a-3bde-490e-a709-092402a6e84d/kyc-app/0.log", "job": "dev/kyc-app", "namespace": "dev", "node_name": "pool-1-744e3c56-fx9b", "pod": "app-55d97f7448-wzj27", "stream": "stdout" }, "resources": {}, "severity_text": "", "severity_number": 0, "span_id": "", "trace_flags": 0, "trace_id": "" } @nitya-signoz this is my logs coming from the loki reciever which it is recieving from promtail agents in my infra, i cant see any traceID altogether here, it is just present in the logs.
n
this is your trace_id right
3c7821ee17534c9197557778f5fc1aeb
?
u
yes
n
Then you can use regex parser https://signoz.io/docs/logs-pipelines/processors/#regex to parse out the trace details and use the trace_parser thereafter.