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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...