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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...