-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field value replacement formatter (lookup table) #5009
Comments
+1 It would be excellent |
If someone is interested in creating this field formatted they could check out the string formatter for an example. All on the properties of this class are important except the |
Can you tell me how to deploy and use the string formatter example? We're running Kibana 4.1.2 and I'd love to be able to convert some specific string ID's to human-readable format. |
+1 |
Will this be considered? Similar to #4361? I've managed to get my display label via parent/child inner_hits, but Kibana is not allowing inner hit fields to be used. |
@skearns64 Please? Please? You'd be saving my daughter a lot of copying and pasting if you could get this done. |
via @kellihall
|
+1 |
6 similar comments
+1 |
👍 |
+1 |
+1 |
+1 |
+1 |
+1 definitely very useful |
+1 |
8 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
👍 |
+1 |
+1 |
+1 |
+1 |
For small sets of values this could be done with a scripted field like this;
But you wouldn't want to do that for a lot of potential values. |
Often, when I'm visualizing data in Kibana, I have a numeric field (or string ID) in my data that maps to a logical concept that would be easier to understand if it were mapped to a pretty-print string.
To take a simple example: City Crime data
The data contains a field called INCIDENT_TYPE_DESCRIPTION, which has some human readable values, like
ROBBERY
, but others are harder to intuit, likeVAL
. In this case,VAL
stands forViolator at Large
, which would be a much better value to show in the legend. Similarly, the ReptDistrict, has string values like D4 that correspond to more useful terms like "South End".It would be excellent if there was a way to map the values of a particular field to strings I specify. While Legends are the most useful place for me, it might be nice to be able to see the readable version everywhere we show the field, though it would be important to have the original value present when viewing the document detailed table view, for example.
For the purposes of this issue, a static mapping is sufficient, though a follow-on feature request would be to allow dynamic lookups of some kind. Perhaps this fits as a type of field formatter?
The text was updated successfully, but these errors were encountered: