Splunk Search

Search by macro name?

blurblebot
Communicator

Is there a way to count events by the name of the macros matched?

Example, I have macros A, B, and C.

Can I do a search of something equivalent to

`A` OR `B` OR `C` | stats count(macro_name)

?

Tags (2)
1 Solution

dwaddle
SplunkTrust
SplunkTrust

Not that I know of. Macros gets interpreted into the search string, and their original identity is pretty much lost. Depending on the complexity of your macro, you could build eventtypes that match it (or even replace it?). Eventtypes do retain their identity through the search and would let you do this.

View solution in original post

dwaddle
SplunkTrust
SplunkTrust

Not that I know of. Macros gets interpreted into the search string, and their original identity is pretty much lost. Depending on the complexity of your macro, you could build eventtypes that match it (or even replace it?). Eventtypes do retain their identity through the search and would let you do this.

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