Kibana Dashboard
So, we want a monitor running on a TV screen/ monitor which would display a KIBANA dashboard with HTTP errors and also ERROR logs. Let’s get started!
So how do we build this? — We do this in 4 steps!
Define and save the search that would be needed for this dashboard
Things to include in the search:
- Application name
- Application environment
- Application ERROR logs
- Application HTTP request logs of type 4xx,5xx
Things to exclude in the search query:
- Other applications
- Environments we do not need monitoring on
- Application INFO, WARN logs, unless we want them
- Application HTTP 1xx, 2xx, 3xx logs, unless if we want these
Useful reference: https://www.elastic.co/guide/en/elasticsearch/reference/7.1/query-dsl-query-string-query.html#query-string-syntax
Build a bucketed bar chart visualisation
I’ve chosen the vertical bars here, but possibly anything suitable will work. This will help us visualise the data by breaking it up over time into different colour coded bars
Build a visualisation metric counter
This is of the type ‘Metric’ and is a counter for the number of log entries. This is particularly useful for a quick eye scan reading of the dashboard from afar.
Voila! Build the dashboard
Add the three components together — the counter, the graph and the saved search!
You can now go on to customise this by adding the dark theme, full screen and setting up an auto refresh. Then, display it on a fancy monitor / TV setup!