Replace values with predefined mapping with ELK

Hello! This is a question I posted on StackOverflow
(http://stackoverflow.com/questions/28644501/replace-values-with-predefined-mapping-with-elk)
for which I didn't get any answer yet:

I have a file that I read with Logstash containing a certain parameter
called type. The possible values for this parameter are 0,1,2,3,4,5 (it is
actually represented as an Enum in my Java code).

Let's say type 0 means book, type 1 means newspaper, type 2 means magazine,
etc.

Currently my Logstash filter writes this parameter directly as the number,
but I would like to display panels on Kibana Dashboards that would show me
the value (e.g. book) instead of the number (i.e. 0).

Is there any possibility to add replacements or mappings to a list of
predefined values at Kibana level? Or should I do this mapping manually at
Logstash level with ifconditions? What would be the best approach?

Thanks for your help in advance!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8d4ed42d-93a3-45b7-b28e-377c9ddff2f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You're best off doing this in Logstash -
http://logstash.net/docs/1.4.2/filters/translate

On 23 February 2015 at 06:01, Lucía Pasarin lupasarin@gmail.com wrote:

Hello! This is a question I posted on StackOverflow (
http://stackoverflow.com/questions/28644501/replace-values-with-predefined-mapping-with-elk)
for which I didn't get any answer yet:

I have a file that I read with Logstash containing a certain parameter
called type. The possible values for this parameter are 0,1,2,3,4,5 (it
is actually represented as an Enum in my Java code).

Let's say type 0 means book, type 1 means newspaper, type 2 means
magazine, etc.

Currently my Logstash filter writes this parameter directly as the number,
but I would like to display panels on Kibana Dashboards that would show me
the value (e.g. book) instead of the number (i.e. 0).

Is there any possibility to add replacements or mappings to a list of
predefined values at Kibana level? Or should I do this mapping manually at
Logstash level with ifconditions? What would be the best approach?

Thanks for your help in advance!

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/8d4ed42d-93a3-45b7-b28e-377c9ddff2f1%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/8d4ed42d-93a3-45b7-b28e-377c9ddff2f1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9g-k9gA7nuH5GFGhWfyJG8JRSCh%2BG5UG_siCyPzeTukA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.