1

need some help with fluentbit parsing.. really struggling here.

I've got an entry that currently looks like that in the stdout plugin:

[0] datapoints: [1635420146.768714629, {"log"=>"{"@timestamp": "2021-09-29T06:36:48.989Z", "@version": 1, "source_host": "17dcffbb12af", "name": "my_nice_log"}"}]

I'm trying to lift that log field so I'll get my inner JSON as a map.

Unfortunately, I'm getting the following error in the logs:

[2021/10/28 15:10:02] [ warn] [filter:nest:nest.5] Value of key 'log' is not a map. Will not attempt to lift from here

Tried to use JSON parser on that field, without success, it doesn't change anything, the JSON is still stringified.

Shai Katz
  • 1,603
  • 12
  • 22

0 Answers0