Splunk Search

Find rogue splunk servers

omgwut56k
Path Finder

I have a list of computers running splunkweb , I am trying to remove results that are logging to the _internal index which would indicate the servers are part of our main infrastructure.

How can I filter out hosts that have reported to events to the _internal index?

Tags (1)
0 Karma

MuS
Legend

Hi omgwut56k,

if I get you correct, you wants to stop or reconfigure some search heads and have them stop forwarding their _internal index - right?

There are a few things you should keep in mind tough:

  • it is not a good practice not to forward the _internal, since it makes troubleshooting much more complicated.
  • What is your intension to do so? If it's about the data amount send, then rather fix any problem on that search head than stop forwarding.
  • If your concern is about license; _internal does not count on the license and has a default retention of 30 days.

But back to your question; this is pretty easy, login to any search head that has all your indexers are search peer and run:

index=_internal | stats count by host

This will get a table of all splunk server sending their _internal events to the indexer.

Hope that helps ...

cheers, MuS

0 Karma

woodcock
Esteemed Legend

Do you perhaps mean main instead of _index?

0 Karma

woodcock
Esteemed Legend

I do not understand; all Splunk servers should log to _index. That is kind of the entire point.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...