Monitoring Splunk

Silent Log Source

Sultan77
Loves-to-Learn Lots

Good day everyone.

I am trying to monitor the environment hosts whether if any stopped sending logs.

The challenge here to make through content management > correlation search.

So it can be scheduled every ex: 2 hours.

any idea?

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Sultan77 ,

you have two choices:

create a lookup (called e.g. perimeter.csv and containing at list only one field: "host") containing the list of hosts to monitor and run a search like the following:

| tstats count where index=* earliest=-2h latest=now BY host
| append [ | inputlookup perimeter.csv | eval count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0

otherwise, if you don't want to create and manage the lookup, you could check if an host sent logs e.g. in the last 30 days but not in the last 2 hours:

| tstats count latest(_time) AS _time where index=* earliest=-30d latest=now BY host
| where _time<(now()-7200

the second search requires less maintenance but gives you less control.

Ciao.

Giuseppe

0 Karma

Sultan77
Loves-to-Learn Lots

looks nice, but how to do the correlation with it?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Sultan77 ,

sorry, what do you mean with correlation with it?

Ciao.

Giuseppe

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Splunk is not good at finding things which aren't there - normally you need to give it a list of what to expect and then check to see which of those are there. For example, you could create a list of hosts that are normally sending events to Splunk and count the events from those hosts over a period of time. Any hosts which don't have events may have stopped sending events.

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...