Splunk Search

My Named Searches are being Audited, can I put a title on my search?

mcm10285
Communicator

Our named searches are being audited. Named searches are those that have a specific User name in the actual search syntax. Those are audited and I would like to find a way to attach a ticket number to the search so a named search would be labeled by a ticket number.

Is there a way to do this on an inline search?

Tags (3)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

My only suggestion would be for you to stick an extraneous eval command in the middle of the search, e.g., from:

sourcetype=mysourcetype userid=xyz | stats count by source_ip

to

sourcetype=mysourcetype userid=xyz | eval ticket_number="ABC1234567" | stats count by source_ip

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

My only suggestion would be for you to stick an extraneous eval command in the middle of the search, e.g., from:

sourcetype=mysourcetype userid=xyz | stats count by source_ip

to

sourcetype=mysourcetype userid=xyz | eval ticket_number="ABC1234567" | stats count by source_ip

mcm10285
Communicator

That's it! So simple! Thank you!

0 Karma
Get Updates on the Splunk Community!

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

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