<?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 Need help to combine inputlookup and map search for two sources in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509097#M142246</link>
    <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help to build a dashboard .&lt;/P&gt;&lt;P&gt;WH.csv content&lt;/P&gt;&lt;P&gt;XXX&lt;/P&gt;&lt;P&gt;YYY&lt;/P&gt;&lt;P&gt;I want to search in two different sources but wanna use the same variable from inputlookup variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;existing Query&lt;/P&gt;&lt;P&gt;| inputlookup WH.csv&lt;BR /&gt;| table ware_house&lt;BR /&gt;| map search="search index=wh source=$ware_house$_WH_OVERVIEW| head 1&lt;BR /&gt;| stats list(Routes) AS ROUTE list(source) AS WH | appendcols [ search index=wh source=$ware_house$_WH_SHIPPING | head 5 | stats list(LabelsCreated) AS LabelsCreated by LabelType | stats sum(LabelsCreated) AS SUMMARY ] "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue : second search is not getting the variable $ware_house$ so it does not return any result.&lt;BR /&gt;&lt;BR /&gt;As soon as the base search work would like to add it in the Dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 16:27:10 GMT</pubDate>
    <dc:creator>kiragsplunk</dc:creator>
    <dc:date>2020-07-14T16:27:10Z</dc:date>
    <item>
      <title>Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509097#M142246</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help to build a dashboard .&lt;/P&gt;&lt;P&gt;WH.csv content&lt;/P&gt;&lt;P&gt;XXX&lt;/P&gt;&lt;P&gt;YYY&lt;/P&gt;&lt;P&gt;I want to search in two different sources but wanna use the same variable from inputlookup variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;existing Query&lt;/P&gt;&lt;P&gt;| inputlookup WH.csv&lt;BR /&gt;| table ware_house&lt;BR /&gt;| map search="search index=wh source=$ware_house$_WH_OVERVIEW| head 1&lt;BR /&gt;| stats list(Routes) AS ROUTE list(source) AS WH | appendcols [ search index=wh source=$ware_house$_WH_SHIPPING | head 5 | stats list(LabelsCreated) AS LabelsCreated by LabelType | stats sum(LabelsCreated) AS SUMMARY ] "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue : second search is not getting the variable $ware_house$ so it does not return any result.&lt;BR /&gt;&lt;BR /&gt;As soon as the base search work would like to add it in the Dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 16:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509097#M142246</guid>
      <dc:creator>kiragsplunk</dc:creator>
      <dc:date>2020-07-14T16:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509116#M142250</link>
      <description>&lt;P&gt;How did you verify the token is not getting passed into the &lt;FONT face="courier new,courier"&gt;map&lt;/FONT&gt; command?&lt;/P&gt;&lt;P&gt;Have you tried using the concatenation operator?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup WH.csv
| table ware_house
| map search="search index=wh source=$ware_house$."_WH_OVERVIEW" | head 1
| stats list(Routes) AS ROUTE list(source) AS WH | appendcols [ search index=wh source=$ware_house$."_WH_SHIPPING" | head 5 | stats list(LabelsCreated) AS LabelsCreated by LabelType | stats sum(LabelsCreated) AS SUMMARY ] "&lt;/LI-CODE&gt;&lt;P&gt;Also, I think the subsearch to &lt;FONT face="courier new,courier"&gt;appendcols&lt;/FONT&gt; won't work.&amp;nbsp; The second &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command is trying to add up a multi-value field, which it probably won't do.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 18:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509116#M142250</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-14T18:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509132#M142256</link>
      <description>&lt;P&gt;Thanks Rich,&lt;/P&gt;&lt;P&gt;Could you please recommend any search string to accomplish this. as you said appendcols not working in map.&amp;nbsp; if I manually assign value (XXX_WH_OVERVIEW &amp;amp; XXX_WH_SHIPPING) works fine. whats the best approach do you recommend?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 20:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509132#M142256</guid>
      <dc:creator>kiragsplunk</dc:creator>
      <dc:date>2020-07-14T20:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509134#M142258</link>
      <description>&lt;P&gt;I ran the query manually to validate the second string.. it would be great if I get this fixed in search..&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 20:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509134#M142258</guid>
      <dc:creator>kiragsplunk</dc:creator>
      <dc:date>2020-07-14T20:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509139#M142259</link>
      <description>&lt;P&gt;Let's break the query up, get the pieces working, then put them together.&amp;nbsp; Do these two searches produce the expected results?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=wh [ | inputlookup WH.csv | eval source=ware_house . "_WH_OVERVIEW" | fields source | format ] 
| head 1
| stats list(Routes) AS ROUTE list(source) AS WH by source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=wh [ | inputlookup WH.csv | eval source=ware_house . "_WH_SHIPPING" | fields source | format ] 
| head 5 
| stats list(LabelsCreated) AS LabelsCreated by LabelType 
| stats sum(LabelsCreated) AS SUMMARY&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jul 2020 20:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509139#M142259</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-14T20:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509332#M142332</link>
      <description>&lt;P&gt;I am getting expected results in both search, could you please help me to append it, if I append the results I am getting time&amp;nbsp; range Error and no results found.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509332#M142332</guid>
      <dc:creator>kiragsplunk</dc:creator>
      <dc:date>2020-07-15T15:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509354#M142341</link>
      <description>We've verified each subsearch works. Good.&lt;BR /&gt;Now the problem is how to combine them. To correlate the events from each subsearch, there must be something in common between them. I see no commonality, but I'm not familiar with the data. Do the subsearches share a field?</description>
      <pubDate>Wed, 15 Jul 2020 16:53:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509354#M142341</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-15T16:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509404#M142360</link>
      <description>&lt;P&gt;No common in between.. those are two different sources from the same index.&amp;nbsp; I&amp;nbsp; don't see any common field in between both search. ( except the index)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 20:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509404#M142360</guid>
      <dc:creator>kiragsplunk</dc:creator>
      <dc:date>2020-07-15T20:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509426#M142372</link>
      <description>That's a big stumbling block. The lack of something in common means Splunk has nothing to use to pair up events from each search.</description>
      <pubDate>Thu, 16 Jul 2020 00:25:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509426#M142372</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-16T00:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509510#M142397</link>
      <description>&lt;P&gt;May I use a python script to run each query separately then combine the results to a csv .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that results can be viewed is Dashboard right? Please advise.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 13:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509510#M142397</guid>
      <dc:creator>kiragsplunk</dc:creator>
      <dc:date>2020-07-16T13:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to combine inputlookup and map search for two sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509537#M142409</link>
      <description>I'm not sure how a python script would merge the results, but I suppose it's possible. The resulting CSV file could then be displayed by a dashboard.</description>
      <pubDate>Thu, 16 Jul 2020 14:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-to-combine-inputlookup-and-map-search-for-two-sources/m-p/509537#M142409</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-16T14:33:12Z</dc:date>
    </item>
  </channel>
</rss>

