<?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 add a new column to existing inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-new-column-to-existing-inputlookup/m-p/499134#M139037</link>
    <description>&lt;P&gt;I think you need to re-write the entire CSV so the header has the new field name.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup test.csv
| append [ basesearch ]
| dedup host source sourcetype
| table host source sourcetype _time
| outputlookup test.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;dedup&lt;/CODE&gt; command presumes you want unique tuples in your lookup file.  If that's not the case, remove &lt;CODE&gt;dedup&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 15:14:38 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-05-14T15:14:38Z</dc:date>
    <item>
      <title>how to add a new column to existing inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-new-column-to-existing-inputlookup/m-p/499133#M139036</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;Hi have existing inputlookup file like test.csv which contains 3 fields like host source sourcetype, i want to add extra one new filed called _time with these 3 fields. I have tried with &lt;CODE&gt;basesearch | table host source soursetype _time|outputlookup test.csv append=true&lt;/CODE&gt; but new field is not appending&lt;/P&gt;

&lt;P&gt;for example if I have this existing csv file contains 100 rows, then these 3 fileds along with new filed results shold be added from 101th row onwards in the csv.  Plz help on this and thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 14:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-new-column-to-existing-inputlookup/m-p/499133#M139036</guid>
      <dc:creator>james_n</dc:creator>
      <dc:date>2020-05-14T14:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a new column to existing inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-new-column-to-existing-inputlookup/m-p/499134#M139037</link>
      <description>&lt;P&gt;I think you need to re-write the entire CSV so the header has the new field name.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup test.csv
| append [ basesearch ]
| dedup host source sourcetype
| table host source sourcetype _time
| outputlookup test.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;dedup&lt;/CODE&gt; command presumes you want unique tuples in your lookup file.  If that's not the case, remove &lt;CODE&gt;dedup&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 15:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-new-column-to-existing-inputlookup/m-p/499134#M139037</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-14T15:14:38Z</dc:date>
    </item>
  </channel>
</rss>

