Deployment Architecture

How to get all inputs per server and then compare with current indexed data?

realsplunk
Motivator

Hello,
we would like to compare sources we ask to index and current state in Splunk (compare inputs.conf and current license usage) to see if we have missing data.

I found this https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-A... to list all inputs however I would like also to get active associated target hosts (clients) found in serverclasses.

Thanks.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please give us more detail about your use case.  Finding missing data can be a challenge because Splunk can't tell you what it doesn't have.

What exactly are you looking for regarding "active associated target hosts (clients) found in serverclasses"?

---
If this reply helps you, Karma would be appreciated.
0 Karma

realsplunk
Motivator

Hi Rich,

for instance we have sources defined in inputs.conf, we can also see them in manager / data inputs / forwarded inputs / files & directory then we want to see if they are effectively indexed.

Thanks for your help!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I'm not sure there's a good solution for this problem for a number of reasons.

  1. Search heads typically are not aware of all inputs since inputs.conf files can be distributed among forwarders of many classes, each with different inputs.
  2. Even knowing the inputs may not be enough.  One would have to figure out how to match an input of the form /var/log/.../*.log to the fully-qualified file path stored in the source field.
  3. Data present from a given source doesn't mean the data is present for *all* hosts reporting that source.

Check out the TrackMe app (https://splunkbase.splunk.com/app/4621), which may address your problem.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Using Machine Learning for Hunting Security Threats

WATCH NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more for ...

Observability Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestSplunk APM's New Tag Filter ExperienceSplunk APM has updated ...

Security Newsletter Updates | March 2023

 March 2023 | Check out the latest and greatestUnify Your Security Operations with Splunk Mission Control The ...