<?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: Can we delete the data from lookup file created ?? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61362#M12207</link>
    <description>&lt;P&gt;Hi.Yannk that was real quick...can you please give me the extact query..i need to the remove the last record from csv file on daily basis...and i want the add the new records from the top to the existing ones..&lt;/P&gt;</description>
    <pubDate>Thu, 13 Dec 2012 20:18:30 GMT</pubDate>
    <dc:creator>rakesh_498115</dc:creator>
    <dc:date>2012-12-13T20:18:30Z</dc:date>
    <item>
      <title>Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61354#M12199</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;

&lt;P&gt;I have written a shceduled search which will save my data to a csv file..Is ther any query to delete the data from csv file after a certain period if needed ??&lt;/P&gt;

&lt;P&gt;Please help..&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 15:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61354#M12199</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-12T15:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61355#M12200</link>
      <description>&lt;P&gt;You can have a scheduled search that will overwrite the lookup with empty events on a regular basis.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 15:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61355#M12200</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-12T15:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61356#M12201</link>
      <description>&lt;P&gt;Can you give a sample query pls ??&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 16:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61356#M12201</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-12T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61357#M12202</link>
      <description>&lt;P&gt;from a saved search in the same app than the lookup :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;* | head 1 | eval _raw="" | table _raw | outputlookup &amp;lt;nameofthelookupcsvfile&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 17:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61357#M12202</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-12T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61358#M12203</link>
      <description>&lt;P&gt;its deleting all the data..i need the last row to be deleted on daily basis...after creating says 30 rows..how can i do it ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 18:52:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61358#M12203</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-13T18:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61359#M12204</link>
      <description>&lt;P&gt;input the data from the existing lookup (inputlookup)&lt;BR /&gt;
process the data, remove lines, add new lines&lt;BR /&gt;
output the data to the lookup (outputlookup)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 19:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61359#M12204</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-13T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61360#M12205</link>
      <description>&lt;P&gt;Can you pls give the search query for that ?? say my lookup file Data.csv .. each time i need to delete the last record  on the daily basis...how can i do it ??&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 20:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61360#M12205</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-13T20:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61361#M12206</link>
      <description>&lt;P&gt;let's suppose your lookup contains 3 columns (3 fields)&lt;/P&gt;

&lt;PRE&gt;
| inputlookup &lt;FILENAME&gt; 
| where (whatever condition to remove or keep lines)
| eval (whatever transforms rules you need )
| append [ search sub search to generate new results to add  if any | table field1 field2 field3 ]  
| table field1 field2 field3 
| outputlookup &lt;FILENAME&gt; 
&lt;/FILENAME&gt;&lt;/FILENAME&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Dec 2012 20:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61361#M12206</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-13T20:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61362#M12207</link>
      <description>&lt;P&gt;Hi.Yannk that was real quick...can you please give me the extact query..i need to the remove the last record from csv file on daily basis...and i want the add the new records from the top to the existing ones..&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 20:18:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61362#M12207</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-13T20:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61363#M12208</link>
      <description>&lt;P&gt;can i delte the last record based on the condition .i.e records count is greater then 30...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 20:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/61363#M12208</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-12-13T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/559245#M92505</link>
      <description>&lt;P&gt;If you don't know no. of rows in csv file then execute below two queries to delete last row in csv lookup&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup &amp;lt;lookup_name&amp;gt; | stats count&lt;/LI-CODE&gt;&lt;P&gt;Now, use the count value in below query::&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup &amp;lt;lookup_name&amp;gt; | head count-1 | outputlookup &amp;lt;lookup_name&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 10:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/559245#M92505</guid>
      <dc:creator>hardik_d</dc:creator>
      <dc:date>2021-07-13T10:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can we delete the data from lookup file created ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/589606#M103385</link>
      <description>&lt;P&gt;this work for me, you may try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup &amp;lt;lookup_name&amp;gt; | head count=1 | outputlookup &amp;lt;lookup_name&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Mar 2022 04:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-delete-the-data-from-lookup-file-created/m-p/589606#M103385</guid>
      <dc:creator>rahmatn</dc:creator>
      <dc:date>2022-03-18T04:05:56Z</dc:date>
    </item>
  </channel>
</rss>

