<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using the map command to run searches from a lookup. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-the-map-command-to-run-searches-from-a-lookup/m-p/600285#M208970</link>
    <description>&lt;P&gt;I have this lookup that has a list of searches I want to run.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-02 at 8.52.39 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19917i30D3AB149024C7B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-06-02 at 8.52.39 AM.png" alt="Screen Shot 2022-06-02 at 8.52.39 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to run a search that can run output the "magic" values search results. The expected search.&lt;BR /&gt;&lt;BR /&gt;This is the search I am using, "&amp;nbsp;| inputlookup test.csv&amp;nbsp; | map search=$magic$ "&lt;BR /&gt;&lt;BR /&gt;When I run this this is the error I am getting:&lt;BR /&gt;&lt;BR /&gt;"&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Unable to run query '"search index::client* sourcetype::ActiveDirectory | fields admonEventType memberOf sAMAccountName sAMAccountType | head 100 | fieldsummary maxvals=2 | where count &amp;gt; 0 | table field values"'.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;"&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 02 Jun 2022 12:56:30 GMT</pubDate>
    <dc:creator>paras</dc:creator>
    <dc:date>2022-06-02T12:56:30Z</dc:date>
    <item>
      <title>Using the map command to run searches from a lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-the-map-command-to-run-searches-from-a-lookup/m-p/600285#M208970</link>
      <description>&lt;P&gt;I have this lookup that has a list of searches I want to run.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-02 at 8.52.39 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19917i30D3AB149024C7B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-06-02 at 8.52.39 AM.png" alt="Screen Shot 2022-06-02 at 8.52.39 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to run a search that can run output the "magic" values search results. The expected search.&lt;BR /&gt;&lt;BR /&gt;This is the search I am using, "&amp;nbsp;| inputlookup test.csv&amp;nbsp; | map search=$magic$ "&lt;BR /&gt;&lt;BR /&gt;When I run this this is the error I am getting:&lt;BR /&gt;&lt;BR /&gt;"&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Unable to run query '"search index::client* sourcetype::ActiveDirectory | fields admonEventType memberOf sAMAccountName sAMAccountType | head 100 | fieldsummary maxvals=2 | where count &amp;gt; 0 | table field values"'.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;"&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Jun 2022 12:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-the-map-command-to-run-searches-from-a-lookup/m-p/600285#M208970</guid>
      <dc:creator>paras</dc:creator>
      <dc:date>2022-06-02T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using the map command to run searches from a lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-the-map-command-to-run-searches-from-a-lookup/m-p/600309#M208976</link>
      <description>&lt;P&gt;Try using a double map&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup test.csv
| map search="| makeresults | map search="$$magic$$&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 15:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-the-map-command-to-run-searches-from-a-lookup/m-p/600309#M208976</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-02T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using the map command to run searches from a lookup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-the-map-command-to-run-searches-from-a-lookup/m-p/677244#M231573</link>
      <description>&lt;P&gt;For anyone else like me in the future trying to get this to work, the solution from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;is for use in a dashboard. You should be able to get this to work outside a dashboard like so:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;| inputlookup test.csv
| map search="| makeresults | map search=\"$magic$\""&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Feb 2024 05:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-the-map-command-to-run-searches-from-a-lookup/m-p/677244#M231573</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2024-02-12T05:00:38Z</dc:date>
    </item>
  </channel>
</rss>

