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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...