am getting logs like , extra.trace_id but i want t...
# support
l
am getting logs like , extra.trace_id but i want to get it at root level
Copy code
{
  "body": "{\"timestamp\":1751272849670,\"message\":\"{'level': 'info', 'event': 'POST v2/scores REQUEST', 'class_name': 'app.api.api_v2.api', 'method_name': 'post_score', 'input': {'client_ip': '127.0.0.6', 'geoip_data': {}}, 'output': None, 'additional_data': {'merchant_id': 100}, 'request_id': '73fd9a0b-8be9-499e-beb1-09313372f4a4'}\",\"log.level\":\"INFO\",\"logger.name\":\"RTO Logger\",\"thread.id\":139974776515456,\"thread.name\":\"MainThread\",\"process.id\":8,\"process.name\":\"MainProcess\",\"file.name\":\"/app/app/services/logging.py\",\"line.number\":91,\"entity.type\":\"SERVICE\",\"extra.trace_id\":\"ffb971fdf9d57b1de9142bde26f9de6c\",\"extra.span_id\":\"dd1b586e3ac24999\"}",
  "id": "0h7lZmpmyCKj063pJ22saCfNHPx",
  "timestamp": "2025-06-30T08:40:49.671465062Z",
  "attributes": {
    "line.number": 91,
    "process.id": 8,
    "thread.id": 139974776515456,
    "timestamp": 1751272849670,
    "entity.type": "SERVICE",
    "extra.span_id": "dd1b586e3ac24999",
    "extra.trace_id": "ffb971fdf9d57b1de9142bde26f9de6c",
    "file.name": "/app/app/services/logging.py",
    "log.file.path": "/var/log/pods/sandbox_gkwk-ncde-sandbox-rto-api-v4-56ccd7fb69-wwml7_67c556a6-ef84-4267-a16d-908d3005c983/gkwk-ncde-sandbox-rto-api-v4/0.log",
    "log.iostream": "stderr",
    "log.level": "INFO",
    "logger.name": "RTO Logger",
    "logtag": "F",
    "message": "{'level': 'info', 'event': 'POST v2/scores REQUEST', 'class_name': 'app.api.api_v2.api', 'method_name': 'post_score', 'input': {'client_ip': '127.0.0.6', 'geoip_data': {}}, 'output': None, 'additional_data': {'merchant_id': 100}, 'request_id': '73fd9a0b-8be9-499e-beb1-09313372f4a4'}",
    "process.name": "MainProcess",
    "thread.name": "MainThread",
    "time": "2025-06-30T08:40:49.671465062Z"
  },
  "resources": {
    "cloud.account.id": "749107486095",
    "cloud.availability_zone": "ap-south-1c",
    "cloud.platform": "aws_eks",
    "cloud.provider": "aws",
    "cloud.region": "ap-south-1",
    "deployment.environment": "dev",
    "host.id": "i-0cf7c802bffd7a817",
    "host.image.id": "ami-0c3bf96d9dba3da66",
    "host.name": "ip-10-4-171-144.ap-south-1.compute.internal",
    "host.type": "t3a.2xlarge",
    "k8s.cluster.name": "gkwk-dev-v4-eks-cluster",
    "k8s.container.name": "gkwk-ncde-sandbox-rto-api-v4",
    "k8s.container.restart_count": "0",
    "k8s.deployment.name": "gkwk-ncde-sandbox-rto-api-v4",
    "k8s.namespace.name": "sandbox",
    "k8s.node.name": "ip-10-4-171-144.ap-south-1.compute.internal",
    "k8s.node.uid": "f0acf784-a530-4566-b42e-719d5ec0b3c1",
    "k8s.pod.name": "gkwk-ncde-sandbox-rto-api-v4-56ccd7fb69-wwml7",
    "k8s.pod.start_time": "2025-06-30T08:38:13Z",
    "k8s.pod.uid": "67c556a6-ef84-4267-a16d-908d3005c983",
    "os.type": "linux",
    "signoz.component": "otel-agent"
  },
  "scope": {},
  "severity_text": "",
  "severity_number": 0,
  "scope_name": "",
  "scope_version": "",
  "span_id": "",
  "trace_flags": 0,
  "trace_id": ""
}
g
Hey, take a look at the logs pipeline: https://signoz.io/docs/logs-pipelines/introduction/ Specifically, the move operator should work for the span and id trace: https://signoz.io/docs/logs-pipelines/processors/#move
👍 1