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!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...