Kibana logstash table row color based on log level

It seems too simple, but I could not find anything on the Internet about it.

I am configuring Kibana to visualize our logs (log4j). I would like WARN and ERROR (the loglevel field in ElasticSearch) to be in a different color in the table view of the records returned from the query. Is it possible?

Thanks Steve

+7
elasticsearch logstash kibana
source share
1 answer

I created a simple, dirty patch for kibana-3.1.1. The text color turns red when the JSON data is β€œlevel” and its value is β€œerror”

Patch: https://github.com/mamewotoko/kibana/commit/b96078a950f26d1036f747fc73091e5577a8d9eb

Sample data:

 {"index":{"_index":"xxxlog","_type":"log","_id":0}} { "level": "error", "message": "Error!!" } 
+1
source share

All Articles