Splunk Search

Is there a way to report on the devices depositing syslogs on my heavy forwarders?

mflippin
New Member

I need to write a search to report on what devices are sending logs to my heavy forwarders using syslog-ng to the /var/log/splunk/* directory. The issue is those directories under Splunk are mostly by IP address instead of host name.

I'd like to map the source log location to the index or vendor type which I could then use to determine if every device log type is actually being ingested into Splunk.

I tried Index!=_* | chart count by sourcetype, host limit=100 but it doesn't identify the folder the log is in.

Any ideas would be helpful.

0 Karma

somesoni2
Revered Legend

Try something like this

| tstats count WHERE index=* by index, source  | search source="/var/log/splunk/*"

THis should give mapping of all index and corresponding source from location /var/log/splunk/ .

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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