Splunk Search

Checking specific index data for large server list

nehamvinchankar
Path Finder

Hi all,

I have list of 3k+ servers for which i want to check data flow from specific index. How can i do this with optimize search

Labels (1)
Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @nehamvinchankar,

you could insert the server list in a lookup (called e.g. "perimeter.csv"9 containing at least one column (host).

Remember to create also the lookup definition.

then you could run a search like this:

| tstats count WHERE index=your_index BY host
| append [ | inputlookup perimeter.csv | eval count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0

Ciao.

Giuseppe

 

0 Karma

nehamvinchankar
Path Finder

Not working

I want list of servers which are having index data from the list provided

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @nehamvinchankar,

sorry, this is the check that all the servers are sending data.

If you want the server list that sent data is easier, try this:

| tstats count WHERE index=your_index BY host
| table host

Ciao.

Giuseppe

0 Karma
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!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

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