Splunk Search

"Error in 'map' command: Unable to find saved search 'search='"

mcgi906
Explorer

Currently, I have a form with a search that populates a two column table, and am using one of the columns as a key to append a third. However, I keep on getting an error message that there's an error coming from the map command, and after looking at several examples, cannot figure out what's wrong with it.

map search= "search index=a STATUS=WAIT | eval REASON=split(REASON,"/") | eval filteredVal=mvfilter(match(REASON, $$SPLITid$$))" | table filteredVal
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

There is an additional space after search=. remove it

...| map search="search index=a STATUS=WAIT | eval REASON=split(REASON,"/") | eval filteredVal=mvfilter(match(REASON, $$SPLITid$$))" | table filteredVal

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

There is an additional space after search=. remove it

...| map search="search index=a STATUS=WAIT | eval REASON=split(REASON,"/") | eval filteredVal=mvfilter(match(REASON, $$SPLITid$$))" | table filteredVal
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...