Splunk Search

How to create a search to see what is currently forwarding logs to Splunk?

heats
Explorer

We're going to be migrating our Splunk to a central instance. I need to start pulling some information which I think I could do in a report/search and my regex skills are brand new.

If I wanted to report on what's currently forwarding logs into our current Splunk instance, is there any documentation that would be helpful? Could someone point me in the right direction?

Thank you!

0 Karma
1 Solution

somesoni2
Revered Legend

Here are few you can use

List of servers sending their internal data to your Indexers (all servers should send _internal data to Indexers). This may include your Splunk servers, so you can exclude them WHERE clause.

| tstats count WHERE index=_internal sourcetype=splunkd host=* by host | table host 

List of servers sending non-internal data

| tstats count WHERE index=* by host | table host

or

| metadata type=hosts index=* | table host

View solution in original post

0 Karma

somesoni2
Revered Legend

Here are few you can use

List of servers sending their internal data to your Indexers (all servers should send _internal data to Indexers). This may include your Splunk servers, so you can exclude them WHERE clause.

| tstats count WHERE index=_internal sourcetype=splunkd host=* by host | table host 

List of servers sending non-internal data

| tstats count WHERE index=* by host | table host

or

| metadata type=hosts index=* | table host
0 Karma

heats
Explorer

AMAZING! Is the second one just all of the servers that have Splunk forwarder installed but aren't currently sending any data to Splunk?

0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@heats - Did the answer provided by somesoni2 help provide a working solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!

0 Karma

somesoni2
Revered Legend

The first one will give list of all forwarders that have forwarder installed and is connecting to your Indexers. They may or may not have application logs monitoring enabled (not sending any data).

The second and third one shows list of forwarder which are actually sending some (application/machine) data to Splunk.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...