<?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 Delete old data from lookupfile in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Delete-old-data-from-lookupfile/m-p/55829#M13628</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a lookup file which will get update daily(from a scheduled search ), I need keep only last 45 days data in it, means data which is added 45 days back needs to be deleted.(we have _time field in lookup file)&lt;/P&gt;

&lt;P&gt;Please let me know if there is any other way to store the data(which will update daily ) with out using lookup file.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jan 2012 18:09:45 GMT</pubDate>
    <dc:creator>Ravan</dc:creator>
    <dc:date>2012-01-21T18:09:45Z</dc:date>
    <item>
      <title>Delete old data from lookupfile</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delete-old-data-from-lookupfile/m-p/55829#M13628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a lookup file which will get update daily(from a scheduled search ), I need keep only last 45 days data in it, means data which is added 45 days back needs to be deleted.(we have _time field in lookup file)&lt;/P&gt;

&lt;P&gt;Please let me know if there is any other way to store the data(which will update daily ) with out using lookup file.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2012 18:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delete-old-data-from-lookupfile/m-p/55829#M13628</guid>
      <dc:creator>Ravan</dc:creator>
      <dc:date>2012-01-21T18:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete old data from lookupfile</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delete-old-data-from-lookupfile/m-p/55830#M13629</link>
      <description>&lt;P&gt;This (should be) fairly trivial as part of your scheduled search that creates your lookup.  I assume that your lookup is created roughly as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;some_search_terms | inputlookup append=true lookup.csv | 
some_other_stuff | outputlookup lookup.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following this paradigm, you can insert something like this before the &lt;CODE&gt;outputlookup&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where _time &amp;gt;= now() - (86400 * 45)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Jan 2012 18:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delete-old-data-from-lookupfile/m-p/55830#M13629</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-01-21T18:38:16Z</dc:date>
    </item>
  </channel>
</rss>

