In order to build a visualization, you would need to insert data into a new index representing your status. This might be possible using Kibana's built-in alerting capabilities, but be aware that a 5-second interval is potentially going to slow down Kibana unless you follow the instructions for running in production. You could also set up an external monitoring system that is able to index new logs into Elasticsearch, which you could then visualize in Kibana.
Here are the instructions for setting up a Kibana alert. You could use an index threshold alert, which sends output to an index. Alerting | Kibana Guide [7.13] | Elastic