<?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 values from two CSV files? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-values-from-two-CSV-files/m-p/348287#M103133</link>
    <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2018 18:25:08 GMT</pubDate>
    <dc:creator>fzhao2</dc:creator>
    <dc:date>2018-01-30T18:25:08Z</dc:date>
    <item>
      <title>How to add values from two CSV files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-values-from-two-CSV-files/m-p/348285#M103131</link>
      <description>&lt;P&gt;I have multiple tables, can I add/OR/AND... on each cell of all the tables?&lt;/P&gt;

&lt;P&gt;For example, if I have below two tables, and add the corresponding cells,&lt;BR /&gt;
file1.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;row_id,0,2,4
0,     0,1,1
2,     0,0,1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;file2.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;row_id,0,2,4
0,     0,1,1
2,     0,1,0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The expected output is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;row_id,0,2,4
0,     0,2,2
2,     0,1,1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 20:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-values-from-two-CSV-files/m-p/348285#M103131</guid>
      <dc:creator>fzhao2</dc:creator>
      <dc:date>2018-01-29T20:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from two CSV files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-values-from-two-CSV-files/m-p/348286#M103132</link>
      <description>&lt;P&gt;Generally speaking, it's not a great idea to name your fields (or, in this case, your columns) with numbers, because that will make difficult code in Splunk. But in this case, you won't actually need to reference them directly at all:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup file1.csv
| append 
 [ | inputlookup file2.csv ]
| stats sum(*) AS * BY row_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 20:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-values-from-two-CSV-files/m-p/348286#M103132</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-01-29T20:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from two CSV files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-values-from-two-CSV-files/m-p/348287#M103133</link>
      <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 18:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-values-from-two-CSV-files/m-p/348287#M103133</guid>
      <dc:creator>fzhao2</dc:creator>
      <dc:date>2018-01-30T18:25:08Z</dc:date>
    </item>
  </channel>
</rss>

