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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...