Deployment Architecture

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

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

* If this helps, please upvote or accept solution 🙂 *
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

splunkreal
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!

* If this helps, please upvote or accept solution 🙂 *
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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...