<?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 do I merge columns from a CSV with an existing input lookup file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210085#M61451</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup new_windows_devices.csv | append [|inputlookup Windows.csv] | stats count by Hostname SourceType | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Aug 2016 01:32:52 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-08-08T01:32:52Z</dc:date>
    <item>
      <title>How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210075#M61441</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have an input lookup file called windows.CSV and have another .CSV file which contains host, sourcetype, and source details.&lt;/P&gt;

&lt;P&gt;How can we map these columns into the existing lookup file or merge two files into a single file?&lt;BR /&gt;
Is it possible? Please suggest me.&lt;/P&gt;

&lt;P&gt;Host, Sourcetype and Source&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Syed&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 04:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210075#M61441</guid>
      <dc:creator>syedsalam</dc:creator>
      <dc:date>2016-08-03T04:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210076#M61442</link>
      <description>&lt;P&gt;Hi syedsalam,&lt;/P&gt;

&lt;P&gt;I believe you can accomplish this by utilizing the append=t functionality of inputlookup. i.e.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup windows.csv | inputlookup other.csv append=t
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please let me know if this answers your question!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 17:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210076#M61442</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2016-08-03T17:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210077#M61443</link>
      <description>&lt;P&gt;What is the common key field between the two files?&lt;/P&gt;

&lt;P&gt;You could either do a lookup or a join command but you need a common key.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 17:47:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210077#M61443</guid>
      <dc:creator>sjohnson_splunk</dc:creator>
      <dc:date>2016-08-03T17:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210078#M61444</link>
      <description>&lt;P&gt;Host field is common key in both file.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 17:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210078#M61444</guid>
      <dc:creator>syedsalam</dc:creator>
      <dc:date>2016-08-03T17:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210079#M61445</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; | inputlookup windows.csv | lookup other.csv host | outputlookup merged.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This assumes that both are lookups (you didn't say that about the other.csv)  if it's not then assuming it in var/run/splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputcsv other.csv | lookup windows.csv | outputlookup merged.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2016 18:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210079#M61445</guid>
      <dc:creator>sjohnson_splunk</dc:creator>
      <dc:date>2016-08-03T18:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210080#M61446</link>
      <description>&lt;P&gt;Thanks John.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 18:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210080#M61446</guid>
      <dc:creator>syedsalam</dc:creator>
      <dc:date>2016-08-03T18:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210081#M61447</link>
      <description>&lt;P&gt;Thanks Muebel.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 18:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210081#M61447</guid>
      <dc:creator>syedsalam</dc:creator>
      <dc:date>2016-08-03T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210082#M61448</link>
      <description>&lt;P&gt;It's not working John.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 04:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210082#M61448</guid>
      <dc:creator>syedsalam</dc:creator>
      <dc:date>2016-08-04T04:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210083#M61449</link>
      <description>&lt;P&gt;Hi Muebel,&lt;/P&gt;

&lt;P&gt;My query is I have one look up file in Splunk for asset and another CSV file in My system. i want to Join both file in to single file.&lt;/P&gt;

&lt;P&gt;is there any way to marge?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 05:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210083#M61449</guid>
      <dc:creator>syedsalam</dc:creator>
      <dc:date>2016-08-04T05:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210084#M61450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please suggest me, how to marge two files in to single file. Common key for both file is Hostname and SourceType.&lt;/P&gt;

&lt;P&gt;i should get only column of Hostname and SourceType not any other columns.&lt;BR /&gt;
The file name is available below.&lt;/P&gt;

&lt;P&gt;| inputlookup new_windows_devices.csv | inputlookup Windows.csv&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210084#M61450</guid>
      <dc:creator>syedsalam</dc:creator>
      <dc:date>2020-09-29T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge columns from a CSV with an existing input lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210085#M61451</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup new_windows_devices.csv | append [|inputlookup Windows.csv] | stats count by Hostname SourceType | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Aug 2016 01:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-merge-columns-from-a-CSV-with-an-existing-input-lookup/m-p/210085#M61451</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-08T01:32:52Z</dc:date>
    </item>
  </channel>
</rss>

