Hi,
is there a function that I can use in Graylog when a json key has a complex value, like a list of element?
I mean, if I have a json like: {"DeviceProperties":{Name=OS, Value=MacOs}, {Name=BrowserType, Value=Chrome}}
is there something that can be used to map all of that list values?
For example
DeviceProperties_OS = MacOs and so on
I think there is a JSON extractor, there is also parse_json() in the pipeline that you can follow with a set_fields() there were some other posts around here with people using them…
It’s hard to work with text from a screen shot, use the </> forum tool and paste in actual text. What does the original message look like? I don’t have enough information to make suggestions…
consider that between the Name and OS I have the correct colons separator key.
After JSon extractor I have the result that I attached in the previous message where
DeviceProperties is the key and the value is a string that I post before that seems a Map.toString output.
As you can see , the quotes are missing too. So I think that the jsonExctractor fails the json parse the the field is an object