Pipeline plugin: set_fields write value as JSON containing the Map value


I write a plugin to get info from GLPI API rest.

It generates a pipeline function which return a Map and the set_fields function create the correct field but with a weird value (like {"string":"hp","value_type":"STRING","chars":"hp"}).

The pipeline debug function print this:
PIPELINE DEBUG: {Status="used", Type="laptop", Manufacturer="hp", Model="envy", Date="2019-07-30 15:24:53", Name="vwing.tuxtrooper.com", Location="Elancourt", Serial Number="gdg"}

How can i can make graylog to display only the value (hp in this example) ?

Thanks by advance.

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