Splunk Search

Return the Field Name from a Common Value Across Sourcetypes

proletariat99
Communicator

If I do a search like this:

index=* sourcetype=* host=* 1.1.1.1

And I get millions of responses from dozens of sourcetypes, how can I return the name of the field(s) where 1.1.1.1 occurs?

I don't have time to chunk through thousands of possible fields looking for my data. The best suggestion I've heard to date is a rex that looks backwards and returns pre-equal-sign data. I have a hard time believing there isn't an easier / more elegant solution. Can anyone help?

Tags (2)
1 Solution

bshuler_splunk
Splunk Employee
Splunk Employee

This example will show you all of the fields which contain the value shelper

index=_internal shelper | fieldsummary | search values=shelper | table field

View solution in original post

0 Karma

bshuler_splunk
Splunk Employee
Splunk Employee

This example will show you all of the fields which contain the value shelper

index=_internal shelper | fieldsummary | search values=shelper | table field

0 Karma

proletariat99
Communicator

If I could vote this up a hundred times, I would. I use this all the time.

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