JSON pipeline stage with @

I have a JSON log that looks like this:

{
   "@l": "info"
   "foo": "bar"
}

I am looking to use the JSON stage to extract the @l property into the map.

I tried this:

- json:
     expressions:
       level: '"@l"'
- labels:
     level:

The agent starts but no logs are scraped. If I removed the JSON stage, tons of logs come in.

What could I be doing wrong with the @ escape sequence?

@gabecalabro what happens when you remove the inner quotes?

Turns out what I did was correct :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.