<?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 How to add some filters to |lookup ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-some-filters-to-lookup/m-p/463195#M99521</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I use this command for filtration data by lookup file record...&lt;BR /&gt;
 &lt;CODE&gt;| lookup loopup.csv lookupname AS searchName OUTPUTNEW fieldtype, fieldvalue&lt;/CODE&gt;&lt;BR /&gt;
And  I have result from  &lt;CODE&gt;index=name&lt;/CODE&gt; where field searchName is lookupname.&lt;/P&gt;

&lt;P&gt;How should I write search that would use for example  &lt;CODE&gt;| lookup loopup.csv lookupname AS searchName, lookupname AS searchField OUTPUTNEW fieldtype, fieldvalue&lt;/CODE&gt; and take result where field &lt;CODE&gt;searchName&lt;/CODE&gt; is &lt;CODE&gt;lookupname&lt;/CODE&gt; and &lt;CODE&gt;lookupname&lt;/CODE&gt; is &lt;CODE&gt;searchField&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 12:47:44 GMT</pubDate>
    <dc:creator>rendie</dc:creator>
    <dc:date>2019-12-09T12:47:44Z</dc:date>
    <item>
      <title>How to add some filters to |lookup ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-some-filters-to-lookup/m-p/463195#M99521</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I use this command for filtration data by lookup file record...&lt;BR /&gt;
 &lt;CODE&gt;| lookup loopup.csv lookupname AS searchName OUTPUTNEW fieldtype, fieldvalue&lt;/CODE&gt;&lt;BR /&gt;
And  I have result from  &lt;CODE&gt;index=name&lt;/CODE&gt; where field searchName is lookupname.&lt;/P&gt;

&lt;P&gt;How should I write search that would use for example  &lt;CODE&gt;| lookup loopup.csv lookupname AS searchName, lookupname AS searchField OUTPUTNEW fieldtype, fieldvalue&lt;/CODE&gt; and take result where field &lt;CODE&gt;searchName&lt;/CODE&gt; is &lt;CODE&gt;lookupname&lt;/CODE&gt; and &lt;CODE&gt;lookupname&lt;/CODE&gt; is &lt;CODE&gt;searchField&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 12:47:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-some-filters-to-lookup/m-p/463195#M99521</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2019-12-09T12:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add some filters to |lookup ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-some-filters-to-lookup/m-p/463196#M99522</link>
      <description>&lt;P&gt;Hi @rendie,&lt;BR /&gt;
I'm not sure to have completely understood your request: you want to add fieldtype and fieldvalue when lookupname matches searchName and searchField, is it correct?&lt;BR /&gt;
if this is your request, please, try to use two time lookup command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your_search
| lookup loopup.csv lookupname AS searchName OUTPUT fieldtype AS fieldtype1 fieldvalue AS fieldvalue1
| lookup loopup.csv lookupname AS searchField OUTPUT fieldtype AS fieldtype2 fieldvalue AS fieldvalue2
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 14:38:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-some-filters-to-lookup/m-p/463196#M99522</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-09T14:38:21Z</dc:date>
    </item>
  </channel>
</rss>

