I have data being exported from Opentelemetry collector into Loki. A sample log message is shown below:
2021-12-16 22:19:33 [traceID=bbfce87e90f160fab7083658e41a5efc spanID=ab7207d0250cacfa] Received Order with ID :12348i
I dont have any parsed fields defined. But I see two fields [traceID and spanID added. But the name of the traceID field is incorrect with a “[” prepended and the value of the spanID has an “]” appended. I am assuming this is the “” pair around the values that are being parsed incorrectly. If I add
traceID=(\w+)
in the parsed fields I get that correctly but I still get the incorrect fields too. See below: