Splunk Search

Does the map command run the entire command, then each row?

PatrickButterly
Explorer

So I noticed this while using sendmail can somebody confirm that I understand the map commands functionality? I cant see it in the docs

if the command was "search ...| map [ | sendemail ..etc.. ]"

it would execute :
"search ... | sendemail ..etc.. ]"
"search row1 ... | sendemail ..etc.. ]"
"search row2 ... | sendemail ..etc.. ]"
and so on.

Thank you

0 Karma
1 Solution

woodcock
Esteemed Legend

That is exactly correct. Be aware that the default is maxsearches=5 so you might need to make it maxsearches=100 or something. Be careful, though; this spawns many searches and can easily lead to queuing and other "too busy" problems.

View solution in original post

woodcock
Esteemed Legend

That is exactly correct. Be aware that the default is maxsearches=5 so you might need to make it maxsearches=100 or something. Be careful, though; this spawns many searches and can easily lead to queuing and other "too busy" problems.

PatrickButterly
Explorer

Beautiful thanks very much for that

0 Karma

aljohnson_splun
Splunk Employee
Splunk Employee

I think you mean maxsearches not limit

woodcock
Esteemed Legend

...waves hands... like I said!

0 Karma
Get Updates on the Splunk Community!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...