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

Color code cells or rows based on field values #617

Closed
cdeck opened this issue Oct 27, 2013 · 4 comments
Closed

Color code cells or rows based on field values #617

cdeck opened this issue Oct 27, 2013 · 4 comments

Comments

@cdeck
Copy link

cdeck commented Oct 27, 2013

I use kibana for many things, including slicing and dicing through my OSSEC (Host-Based Intrusion Detection System [HIDS]) alerts.

OSSEC has an alert leveling system to aid in reviewing logs, ranging from 0 to 16 - the higher the level, the more security-relevant the event. In Kibana 2 I hacked together a change so that a field named 'alert' would apply a different background color to that cell based on the value.
For example:
level 1 = dark green
...
level 5 = blend of green and yellow
...
level 8 = yellow
...
level 16 = dark red

I got this idea from another individual involved with OSSEC. You can see a crude snapshot of his idea here:
http://i1.ytimg.com/vi/SNYoXw24tfw/hqdefault.jpg

Kibana 3's code base is much more sophisticated now and I'm not confident in my ability to modify it to provide the same behavior.

It would be awesome if Kibana 3 could implement a similar system. The way I picture it working is that I specify a field and it's max value, then choose a color scheme for how either that cell OR the entire row would be colored (without making the table hard to read or perturbing the overall slick look of Kibana).

In addition to OSSEC users, I could see this being helpful for folks that want a way to distinguish between syslog facility levels.

If you read this far, thanks for at least considering my idea.

@cdeck cdeck closed this as completed Oct 27, 2013
@cdeck cdeck reopened this Oct 27, 2013
@rashidkpc
Copy link
Contributor

I think the right way to accomplish this would be with named queries. Then you could color code the results based on the color of the query they match. Alternatively, this could perhaps fit into the field transformation ticket, though figuring out a UI for it would be challenging

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-named-queries-and-filters.html

@greenkiwi
Copy link

I would love to see this feature implemented, having the results have some display of the query that they were found in.

Maybe it could be a separate column for "query" with dots of each color that matched.

@greenkiwi
Copy link

this seems potentially similar to:
#335

@spalger
Copy link
Contributor

spalger commented Oct 6, 2014

Closing, duplicate of #335

@spalger spalger closed this as completed Oct 6, 2014
w33ble pushed a commit to w33ble/kibana that referenced this issue Sep 13, 2018
* Created popover HOC for EuiPopover. Refactored existing popovers.

Added popover HOC. Refactored refresh_control 

Added paddingSize prop to popover

Added EuiButtonIcon and EuiPopover to arg_add_popover

Added aria-label to euibuttonicon in arg_add_popover

Added ids to all popovers

Fixed position of popovers

* Replaced EUI Popover with bootstrap popover

* Removed comments and unused props

* Fix: popover closes when clicking outside of the popover

* Fixed CSS for arg_form

* Changed div to span in popover

* Fixed button prop type in popover

* Refactored popover to use bootstrap overlay.

* Fixed popover props to match EuiPopover props

* Fixed popover title in refresh_control

* Removed window resize and wheel event listeners

* Added comment to popover

* Fixed prop name in popover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@greenkiwi @rashidkpc @spalger @cdeck and others