<?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: Search two fields in one csv lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369439#M175067</link>
    <description>&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/2656i5F73694090F2026B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&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/2657i1EE3111547417D93/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>Wed, 22 Mar 2017 19:40:07 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-03-22T19:40:07Z</dc:date>
    <item>
      <title>Search two fields in one csv lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369437#M175065</link>
      <description>&lt;P&gt;I want to use fields two fields that i have inside the lookup,&lt;/P&gt;

&lt;P&gt;Inside my lookup i have "account" and "date"&lt;/P&gt;

&lt;P&gt;basically i want to do is to search the account with the date which is greater than today.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 04:18:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369437#M175065</guid>
      <dc:creator>ocampocliff1</dc:creator>
      <dc:date>2017-03-22T04:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search two fields in one csv lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369438#M175066</link>
      <description>&lt;P&gt;Hello ocampocliff1,&lt;BR /&gt;
here is the csv i created:&lt;BR /&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/2654iB6CC136788C5E94F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;if the date format is different on your end, you  will have to change the time format in the eval statements. you can find the formats here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Commontimeformatvariables"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;using this search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup accounts.csv 
 | eval new_time = strptime(date, "%m/%d/%Y") 
 | eval c_time=strftime(new_time,"%m/%d/%y %H:%M:%S") 
 | eval now = now() 
 | where new_time &amp;gt; now 
 | table account, c_time 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i got this:&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/2655i13B0F273A9284D21/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;you can play with the | where clause as you please to find accounts on a time frame&lt;/P&gt;

&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 18:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369438#M175066</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-03-22T18:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search two fields in one csv lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369439#M175067</link>
      <description>&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/2656i5F73694090F2026B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&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/2657i1EE3111547417D93/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>Wed, 22 Mar 2017 19:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369439#M175067</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-03-22T19:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search two fields in one csv lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369440#M175068</link>
      <description>&lt;P&gt;couldn't edit the answer to show screenshots. they are in the answer below&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 19:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369440#M175068</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-03-22T19:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search two fields in one csv lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369441#M175069</link>
      <description>&lt;P&gt;Hi adonio,&lt;/P&gt;

&lt;P&gt;Thanks for this one!&lt;/P&gt;

&lt;P&gt;I'm using this concept now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 00:54:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369441#M175069</guid>
      <dc:creator>ocampocliff1</dc:creator>
      <dc:date>2017-03-23T00:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search two fields in one csv lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369442#M175070</link>
      <description>&lt;P&gt;you are welcome!&lt;BR /&gt;
if that answers, can you mark as "answered"?&lt;BR /&gt;
thanks! &lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 12:40:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-two-fields-in-one-csv-lookup/m-p/369442#M175070</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-03-23T12:40:36Z</dc:date>
    </item>
  </channel>
</rss>

