Skip to content
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

Closed
skearns64 opened this issue Sep 22, 2015 · 29 comments
Closed

Field value replacement formatter (lookup table) #5009

skearns64 opened this issue Sep 22, 2015 · 29 comments
Labels
enhancement New value added to drive a business result help wanted adoptme

Comments

@skearns64
Copy link

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, like VAL. In this case, VAL stands for Violator 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?

@rashidkpc rashidkpc changed the title Legend Value Replacement / Replacement Field Formatter Field value replacement formatter Sep 22, 2015
@AnkurMathur14
Copy link

+1 It would be excellent

@spalger
Copy link
Contributor

spalger commented Sep 29, 2015

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 transformOpts (Which are simply used by the editor) and _base64Decode (which is used by the _convert() method)

@dw-milla
Copy link

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.

@lijamie98
Copy link

+1

@guruxu
Copy link

guruxu commented Oct 14, 2016

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.

@benson-basis
Copy link

@skearns64 Please? Please? You'd be saving my daughter a lot of copying and pasting if you could get this done.

@tbragin tbragin changed the title Field value replacement formatter Field value replacement formatter (lookup table) Nov 4, 2016
@tbragin
Copy link
Contributor

tbragin commented Nov 4, 2016

via @kellihall

Describe the feature:
Would love to have Lookup Table functionality added to the Kibana interface. This would be the equivalent to what is in the Splunk interface.
For example:

  • I have an index with member information, and part of their information is the state they live in, but it's abbreviated.
  • I have a second index that has state information, including the abbreviation, full state name, etc.
  • In Splunk, you would simply tell the system to get the state's full name from the other index by identifying it as a lookup table.
  • Having a very simple way of doing this in Kibana would be awesomely efficient.

@dortort
Copy link

dortort commented Feb 23, 2017

+1

6 similar comments
@dizzzyroma
Copy link

+1

@pemontto
Copy link

pemontto commented Mar 9, 2017

👍

@robinmitra
Copy link

+1

@dinnyosz
Copy link

+1

@Kudryavets
Copy link

+1

@sy43165
Copy link

sy43165 commented May 18, 2017

+1

@markchagers
Copy link

+1 definitely very useful

@kachenjr
Copy link

+1

8 similar comments
@ellismendez
Copy link

+1

@madkoala
Copy link

madkoala commented Sep 7, 2017

+1

@jag959
Copy link

jag959 commented Sep 24, 2017

+1

@piotrkochan
Copy link

+1

@jantoniuk
Copy link

+1

@abunet
Copy link

abunet commented Nov 29, 2017

+1

@cinhtau
Copy link

cinhtau commented Feb 21, 2018

👍

@guylaurent
Copy link

+1

@cumulate
Copy link

+1
I'm a newbie here. Is there a way to implement/customize the lookup feature via plugin??

@JoeyJo-JoJuniorShabadoo

+1

@rahulKolluri
Copy link

+1

@LeeDr
Copy link

LeeDr commented Aug 14, 2018

For small sets of values this could be done with a scripted field like this;

if (doc['response.raw'].value == "200") {
  return "OK";
} else if (doc['response.raw'].value == "404") {
  return "Not Found";
} else if (doc['response.raw'].value == "503") {
  return "Redirected";
} else {
  return "Unknown"
}

But you wouldn't want to do that for a lot of potential values.

@rayafratkina rayafratkina added enhancement New value added to drive a business result and removed release_note:enhancement labels Sep 12, 2018
@cjcenizal
Copy link
Contributor

This was address for static lookups by #19637. For dynamic lookups, we could implement custom script field formatters (#3585). Closing this in favor of #3585.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result help wanted adoptme
Projects
None yet
Development

No branches or pull requests