Splunk Search

How To Determine When a Host Stops Sending particular type of Logs to Splunk

AL3Z
Builder

Hi all,

I have facing  an issue where exactly we can troubleshoot when a Host Stops Sending cmd Logs to Splunk.

 

Thanks 

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @AL3Z ,

as @bowesmana said, this is a very frequesnt question in this Community and you'll find many resolutive answers to it (also from me and him!) that analyzed many different situations and Use Cases.

Anyway, in few words, you have to create a lookup (called e.g. perimeter.csv), with at list one column (host) and containing the list of hosts to monitor and then run a search like the following:

| tstats count WHERE index=your_index BY host
| append [ | inputlookup perimeter.csv | eval count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0

 Ciao.

Giuseppe

AL3Z
Builder

@gcusello  Hi,

I'd like to investigate which hosts aren't forwarding the specific events with the ParentProcessName="C:\Windows\System32\cmd.exe" to Splunk. How can we troubleshoot if a host isn't sending its logs to Splunk?

Thanks

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @AL3Z,

in this case you cannot use tstats but the norma search, anyway the logic is the same:

index=your_index ParentProcessName="C:\Windows\System32\cmd.exe"
| stats count BY host
| append [ | inputlookup perimeter.csv | eval count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0

 Ciao.

Giuseppe

bowesmana
SplunkTrust
SplunkTrust

Do a search in this community and you will find many many examples of the same question being answered.

 

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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