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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...