We are monitoring a Wildfly deployments using Elasticsearch.
Deployment status are done using Marker files on Wildfly.
So if a war named example.war
is successfully deployed, it will create a file named example.war.deployed
What I want is to monitor the deployment status of each war files. So I want to count the number of existing files who match a specific pattern. For example:
*.deloyed => 2
*.undeployed => 3
*.failed => 5
My initial solution was to create a cron script and use curl
to send the data to ES. But I wonder if there is a better way to do this using the ES Stack.
Thanks you! 
Hello @HarimbolaSantatra
Could you please share what data is being monitored currently for Wildfly & if we have this information already in Elasticsearch? Like this information of failure/deployment details are written in logs & those are sent to elasticsearch?
Just wondering as if the data is available in any of the logs which are sent to elasticsearch then we might not require to use curl & use the existing data to capture the information you need in dashboard.
If not you as you suggested you can use curl/beats to send data to elasticsearch.
Thanks!!
The failure of deployment is indeed written in Wildfly log file. I can use filebeat and logstash to read that file and extract the number of deployment failure or success.
It is a bit tricky because, say I want to deploy example.war
, I need to check every line with example.war
to see if the result is success or failure.