<?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: How to update a lookup table for specific rows? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260455#M78093</link>
    <description>&lt;P&gt;Great,thx,but then shouldn't we say  where addedtime &amp;lt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 17:22:11 GMT</pubDate>
    <dc:creator>nazanin2016</dc:creator>
    <dc:date>2017-01-26T17:22:11Z</dc:date>
    <item>
      <title>How to update a lookup table for specific rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260451#M78089</link>
      <description>&lt;P&gt;I need to keep the name of all systems that have been detected for phishing in order to use it in another search,&lt;BR /&gt;
so I update my lookup table with &lt;STRONG&gt;scheduled search&lt;/STRONG&gt; as follow:&lt;/P&gt;

&lt;P&gt;inputlookup   phishing.csv | &lt;STRONG&gt;append&lt;/STRONG&gt; [look for phishing logs]| outputlookup phishing.csv&lt;/P&gt;

&lt;P&gt;I used append command to keep the previous rows, but I just need to keep each raw only for 1 week from the time it has been added to table (I mean give the time to live=1h)&lt;/P&gt;

&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260451#M78089</guid>
      <dc:creator>nazanin2016</dc:creator>
      <dc:date>2017-01-25T22:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a lookup table for specific rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260452#M78090</link>
      <description>&lt;P&gt;Try like this. This will add a column called &lt;CODE&gt;addedtime&lt;/CODE&gt; to all rows with the time they were added (using scheduled search). The where filter will remove rows older than 1 week from now.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputlookup phishing.csv | append [look for phishing logs ] | eval addedtime=coalesce(addedtime,now()) | where addedtime&amp;gt;relative_time(now(),"-1w") | outputlookup phishing.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260452#M78090</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-25T22:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a lookup table for specific rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260453#M78091</link>
      <description>&lt;P&gt;Great,thx,but then shouldn't we say  where addedtime &lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260453#M78091</guid>
      <dc:creator>nazanin2016</dc:creator>
      <dc:date>2017-01-26T17:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a lookup table for specific rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260454#M78092</link>
      <description>&lt;P&gt;I didn't get it. Did portion of your comment got truncated?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260454#M78092</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T17:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a lookup table for specific rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260455#M78093</link>
      <description>&lt;P&gt;Great,thx,but then shouldn't we say  where addedtime &amp;lt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-update-a-lookup-table-for-specific-rows/m-p/260455#M78093</guid>
      <dc:creator>nazanin2016</dc:creator>
      <dc:date>2017-01-26T17:22:11Z</dc:date>
    </item>
  </channel>
</rss>

