Mac Wynkoop
11/26/2024, 9:17 PM{"level":"error","ts":1732655670.9503894,"caller":"helper/transformer.go:100","msg":"Failed to process entry","kind":"processor","name":"signozlogspipeline/pipeline_conduit","pipeline":"logs","operator_id":"6936b6bb-c733-42db-9ee2-8c4ceae531e5","operator_type":"json_parser","error":"running if expr: interface conversion: interface {} is map[string]interface {}, not string (1:21)\n | body != nil && body matches \"^\\\\s*{.*}\\\\s*$\"\n |
Which seems strange considering it does properly pull out the contents of the body into attributes like I want. Why does this error throw if we do properly parse into attributes?Mac Wynkoop
11/26/2024, 9:43 PMEXPR(replace(toJSON(body), "\n", ""))
To cast the body to attributes.serialized_msg first. But even still, trying to grab the severity_text from attributes.MESSAGE, my regex parser is not applying any text to attributes.severity_name. This is my regex:
(?P<severity_text>(DEBUG|INFO|WARN|ERROR))
Am I doing something wrong?nitya-signoz
11/27/2024, 5:08 AMbody.MESSAGE
.
The issue with datatype is a known one https://github.com/SigNoz/signoz/issues/5993Mac Wynkoop
11/27/2024, 9:51 PMMac Wynkoop
11/27/2024, 10:10 PMMac Wynkoop
11/27/2024, 10:11 PM