I need to write a query 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.
↧