Table Visualisation - replace field [error code] value by some text

Hello,

I am trying to do a Table visualisation to show the different "error codes" found in the daily log and their respective count.

The codes are int numbers : 0= OK, 166= Creation Failure, ...

Is it possible to force Kibana to show anything else than the real "value" of the code.
An "eval" function, or something in "JSON input"

I have this :

But I want an error code description, instead of the number of error code.

Thank you

Hello,

You can use scripted fields in Kibana to map the error codes to a text value.
Here is how you use scripted fields - https://www.elastic.co/guide/en/kibana/current/scripted-fields.html

The operation is a little bit expensive resource vice. So you will need to check and see if it works for you.

Thanks,
Bhavya

1 Like

Thanks, I will try that and let you know

Xavier

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