Getting Data In

List of servers sending logs to Heavy forwarder

Master_Blaster
Explorer

Hello All,

 

We have 20 indexers and 5 HF's in our Environment. HF's are forwarding their data to indexers. I'd need to find out,  which servers are sending logs to HF's. is there any SPL query i can use for same ?
Thanks

0 Karma

SOURAV_S
Explorer

Hi @Master_Blaster ,

Can you check for the following SPL query:

| tstats  values(source) as sources ,values(sourcetype) as sourcetype where index=* by host
| lookup dnslookup clienthost as host OUTPUT  clientip as src_ip

Output of this command would show servers (as per your requirement), with both sourcetype and source information.

 

If this helps, mark it as answer.

Happy Splunking! 🙂

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @Master_Blaster,

You can use below SPL, please change idx=HF_hostname* with proper matching name to match only HF hosts. 

index=_internal component=TcpOutputProc 
| stats count by host idx 
| where idx=HF_hostname*
| fields - count
If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...