<?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 to a lookup csv without having to delete the old and create it again? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421230#M121004</link>
    <description>&lt;P&gt;I have a lookup table file csv.   Every now and then I have to add a couple of domains to it along with a hard coded "1" (which I use as a flag).   &lt;/P&gt;

&lt;P&gt;I have a copy of the csv on my desktop, where I manually edit it,  and then delete the old version in splunk, and create a new lookup, using the edited csv version.&lt;/P&gt;

&lt;P&gt;Is there a more efficient way to update it?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2018 15:16:54 GMT</pubDate>
    <dc:creator>Log_wrangler</dc:creator>
    <dc:date>2018-07-05T15:16:54Z</dc:date>
    <item>
      <title>How to add to a lookup csv without having to delete the old and create it again?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421230#M121004</link>
      <description>&lt;P&gt;I have a lookup table file csv.   Every now and then I have to add a couple of domains to it along with a hard coded "1" (which I use as a flag).   &lt;/P&gt;

&lt;P&gt;I have a copy of the csv on my desktop, where I manually edit it,  and then delete the old version in splunk, and create a new lookup, using the edited csv version.&lt;/P&gt;

&lt;P&gt;Is there a more efficient way to update it?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421230#M121004</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-07-05T15:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to add to a lookup csv without having to delete the old and create it again?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421231#M121005</link>
      <description>&lt;P&gt;There are couple of alternatives, than having to re upload. If the number of entries are less.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Install this app and edit the lookup in Splunk itself &lt;A href="https://splunkbase.splunk.com/app/1724/"&gt;https://splunkbase.splunk.com/app/1724/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Run a search to update/overwrite using outputlookup &lt;PRE&gt;| inputlookup mylookup.csv | append [|makeresults | eval domain="abc" | eval flag="1" | table domain flag] | outputlookup mylookup.csv &lt;/PRE&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421231#M121005</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2018-07-05T15:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add to a lookup csv without having to delete the old and create it again?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421232#M121006</link>
      <description>&lt;P&gt;You can install the &lt;CODE&gt;Lookup Editor&lt;/CODE&gt; app, or you can just fix it in the SPL with something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Search For New/Replacement Data here
| appendpipe [|inputlookup YourLookup.csv]
| dedup YourKeyFieldHere
| outputlookup YourLookup.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;dedup&lt;/CODE&gt; will cause any new data to supersede any existing data and then the merged set is written back out.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 16:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421232#M121006</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-05T16:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to add to a lookup csv without having to delete the old and create it again?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421233#M121007</link>
      <description>&lt;P&gt;your code works great, I could not get it to work because of a 1D10T error, typo,  Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 22:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421233#M121007</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-07-06T22:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to add to a lookup csv without having to delete the old and create it again?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421234#M121008</link>
      <description>&lt;P&gt;Thank you for your reply, I will keep this in mind, however I have to use the above for my situation.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 22:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-to-a-lookup-csv-without-having-to-delete-the-old-and/m-p/421234#M121008</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-07-06T22:12:16Z</dc:date>
    </item>
  </channel>
</rss>

