Getting Data In

What's the most efficient way to monitor JBoss log file activity?

suresh364
New Member

Sometimes we see our JBoss process running but really not functional. The indication is that the log file has not updated for a while. I have the following Splunk search to monitor the log for this condition. Is there any better way to track this ? Planning to run this every 5 minutes or so.

index=jboss_prod
| eval lastseen=strftime(_time, "%b %d %Y %H:%M:%S") 
| eval since=now()-_time
| rename last(lastseen) as "Last updated on"
| where since >210 
| search sourcetype=log4j
| table  host , source,lastseen,since 
| dedup  host , source 
| stats  last(lastseen) by host , source,since

Thanks in advance

Radhak

0 Karma

nickhills
Ultra Champion

Hi - I added this post - If you find it useful, please upvote the answer, or add your own solution if you found another way!

https://answers.splunk.com/answers/606762/how-do-i-monitor-jbosstomcatapacheetc-and-raise-an.html

If my comment helps, please give it a thumbs up!
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...