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 Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...