<?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 Re: Match values under 2 different fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347287#M102820</link>
    <description>&lt;P&gt;Thanks for the headstart.&lt;/P&gt;

&lt;P&gt;Tried but it does not seem to work.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 02:02:21 GMT</pubDate>
    <dc:creator>linwqg</dc:creator>
    <dc:date>2018-03-14T02:02:21Z</dc:date>
    <item>
      <title>Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347285#M102818</link>
      <description>&lt;P&gt;Need help. Appreciate in advance.&lt;/P&gt;

&lt;P&gt;I have 2 lookup csv. I need to match each value under "numberX" field against the list of values under "numnberY" field. If there is a match, e.g. 4653, to obtain the following output.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4535iABDE69CCD468E789/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347285#M102818</guid>
      <dc:creator>linwqg</dc:creator>
      <dc:date>2018-03-13T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347286#M102819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup csv2|lookup csv1 numberX AS numberY OUTPUTNEW info,more_info|table numberX, info, more_info
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 13:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347286#M102819</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-03-13T13:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347287#M102820</link>
      <description>&lt;P&gt;Thanks for the headstart.&lt;/P&gt;

&lt;P&gt;Tried but it does not seem to work.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 02:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347287#M102820</guid>
      <dc:creator>linwqg</dc:creator>
      <dc:date>2018-03-14T02:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347288#M102821</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup csv1|search [search |inputlookup csv2|rename numberY AS numberX |table numberX ]
|table numberX, info, more_info
OR
|inputlookup csv1|join type=inner numberX AS numberY [search |inputlookup csv2]
|table numberX, info, more_info
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Mar 2018 06:32:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347288#M102821</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-03-14T06:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347289#M102822</link>
      <description>&lt;P&gt;Many thanks. Will definitely give this a try as well.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 11:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347289#M102822</guid>
      <dc:creator>linwqg</dc:creator>
      <dc:date>2018-03-14T11:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347290#M102823</link>
      <description>&lt;P&gt;I did abit of cleanup and i think it works. Thanks p_gurav.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 11:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347290#M102823</guid>
      <dc:creator>linwqg</dc:creator>
      <dc:date>2018-03-14T11:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347291#M102824</link>
      <description>&lt;P&gt;I understand from the first pipe onward, that we are renaming the field and table it out. &lt;/P&gt;

&lt;P&gt;Why is this important? How to interpret the search before all these?&lt;/P&gt;

&lt;P&gt;search |inputlookup csv2|rename numberY AS numberX |table numberX&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 11:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347291#M102824</guid>
      <dc:creator>linwqg</dc:creator>
      <dc:date>2018-03-14T11:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347292#M102825</link>
      <description>&lt;P&gt;@linwqg, try the following search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup csv1.csv where 
    [| inputlookup csv2.csv 
    | rename numberY as numberX 
    | table numberX]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Mar 2018 12:03:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347292#M102825</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-14T12:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347293#M102826</link>
      <description>&lt;P&gt;|search [search |inputlookup csv2|rename numberY AS numberX |table numberX]&lt;BR /&gt;
↓&lt;BR /&gt;
search (numberX="X" OR numberX="Y" OR numberX="Z") &lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347293#M102826</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-03-14T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347294#M102827</link>
      <description>&lt;P&gt;Thanks niketnilay. Will give it a try too.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 16:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347294#M102827</guid>
      <dc:creator>linwqg</dc:creator>
      <dc:date>2018-03-14T16:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347295#M102828</link>
      <description>&lt;P&gt;What's the different between 1 and 2?&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;|inputlookup csv1|search [search |inputlookup csv2|rename numberY AS numberX |table numberX ]&lt;/LI&gt;
&lt;LI&gt;|inputlookup csv1|search [|inputlookup csv2|rename numberY AS numberX |table numberX ]&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 14 Mar 2018 16:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347295#M102828</guid>
      <dc:creator>linwqg</dc:creator>
      <dc:date>2018-03-14T16:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347296#M102829</link>
      <description>&lt;P&gt;Your approach work as well. Thanks niketnilay.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347296#M102829</guid>
      <dc:creator>linwqg</dc:creator>
      <dc:date>2018-03-15T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Match values under 2 different fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347297#M102830</link>
      <description>&lt;P&gt;@linwqg, please accept the answer if your issue is resolved to mark this question as answered &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 16:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-values-under-2-different-fields/m-p/347297#M102830</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-15T16:36:47Z</dc:date>
    </item>
  </channel>
</rss>

