Splunk Enterprise

powershell command to check if splunk is forwarding logs to splunk console

LinkLoop
Engager

Is there a powershell command to find out if splunk is indeed forwarding logs to splunk console? I can check if agent is installed andrunning but how about forwarding?

 

which log should i check for?

Labels (2)
0 Karma

tscroggins
Influencer

Hi @LinkLoop,

You can verify Splunk is connected to outputs with the list forward-server command:

& "C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe" list forward-server -auth admin:password

Active forwards:
        splunk.example.com:9997 (ssl)
Configured but inactive forwards:
        None

The command requires authentication, so you'll need to know the local Splunk admin username and password defined at install time.

If the local management port is disabled, the command will not be available. You can otherwise search local logs for forwarding activity:

Select-String -Path "C:\Program Files\SplunkUniversalForwarder\var\log\splunk\splunkd.log" -Pattern "Connected to idx="

Select-String -Path "C:\Program Files\SplunkUniversalForwarder\var\log\splunk\metrics.log" -Pattern "group=per_index_thruput, series=`"_internal`""

 

0 Karma
Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...