Monitoring Splunk

Way to monitor splunkforwarder

virginiatech199
Explorer

How would I monitor splunkforwarder traffic output to indexers from the splunkforwarder? Have the target indexer listed in outputs.conf; url and port.

Monitor meaning is there traffic flowing to the indexers?

This solution does not involve logging into Splunk dashboard -- must be performed from the splunkforwarder.

Thanks for suggestions!

🙂

Tags (1)
0 Karma

virginiatech199
Explorer

Thanks for suggestions. Have to monitor splunk state FROM the splunkforwarder. Tried a 5 second tcpdump to target indexers but sometimes it sees nothing, sometimes sees a lot of traffic.....will try the splunkd.log suggestion.

0 Karma

sandeepmakkena
Contributor

If it is a universal forwarder, the monitoring would be whether it is forwarding the data to a specific index or not. I best approach would create an alert.
Something like this

     | metasearch index=_internal 
     | eval host=upper(host) 
     | stats count by host
     | append [ | inputlookup Perimeter.csv | eval count=0 | eval host=upper(host) | fields host count] 
     | stats sum(count) AS Total by host 
     | where Total=0 

You can set the time interval depending on the data it is forwarding.

Hope this helps, Thanks!

ivanreis
Builder

The splunkd.log file have the information for the UF activity, so you can take a look on this file direct on the UF itself. It should be under /splunkforwarder/var/log/splunk.

My suggestions is to use the Management Console, and you can enable it to monitor the universal forwarder tier. It is not required to index any data, because Splunk by default is already collecting this data in the _internal index. The _internal index, does not count agains the license.
To enable the MC to monitor the splunk forwarders, check this document -> https://docs.splunk.com/Documentation/Splunk/7.3.2/DMC/Configureforwardermonitoring

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!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

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 ...