Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

kibana logstash table row color based on log level

This seems all too simple but I haven't been able to find anything on the internet about it.

I'm setting up Kibana to visualise our logs (log4j). I would like WARN and ERROR (loglevel field in ElasticSearch) to be in another colour in the table view of entries returned from a query. Is this possible?

Thanks, Steve

like image 371
Steve-B Avatar asked Jun 04 '14 22:06

Steve-B


1 Answers

I created simple, dirty patch for kibana-3.1.1. Text color becomes red when JSON data has "level" field 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!!" }
like image 172
Takashi Masuyama Avatar answered Oct 03 '22 00:10

Takashi Masuyama