<?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 Append and Update the CSV from a search output in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Append-and-Update-the-CSV-from-a-search-output/m-p/502457#M85598</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a search which gives the output of the fields a and b. I am saving those outputs to a csv lets say output.csv. I would like to update with the latest value of the value a and b which means I do not want old/duplicate values for a and b and append non-existing values to the CSV file . I tried to do it with the left join but I was not successful. &lt;/P&gt;

&lt;P&gt;Example: from the search fields below output is populated and writen to the csv.&lt;/P&gt;

&lt;H2&gt;name      -      age&lt;/H2&gt;

&lt;P&gt;bob                23&lt;BR /&gt;
joey               33&lt;/P&gt;

&lt;P&gt;and from another search fields below output is populated &lt;/P&gt;

&lt;H2&gt;name      -      age&lt;/H2&gt;

&lt;P&gt;joey                43&lt;/P&gt;

&lt;P&gt;So I want my output.csv files to become below format.&lt;/P&gt;

&lt;H2&gt;name    -        age&lt;/H2&gt;

&lt;P&gt;bob                23&lt;BR /&gt;
joey               43&lt;/P&gt;

&lt;P&gt;Any help?&lt;/P&gt;

&lt;P&gt;Bests!&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 14:48:33 GMT</pubDate>
    <dc:creator>gozdeyildiz</dc:creator>
    <dc:date>2020-03-23T14:48:33Z</dc:date>
    <item>
      <title>Append and Update the CSV from a search output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Append-and-Update-the-CSV-from-a-search-output/m-p/502457#M85598</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a search which gives the output of the fields a and b. I am saving those outputs to a csv lets say output.csv. I would like to update with the latest value of the value a and b which means I do not want old/duplicate values for a and b and append non-existing values to the CSV file . I tried to do it with the left join but I was not successful. &lt;/P&gt;

&lt;P&gt;Example: from the search fields below output is populated and writen to the csv.&lt;/P&gt;

&lt;H2&gt;name      -      age&lt;/H2&gt;

&lt;P&gt;bob                23&lt;BR /&gt;
joey               33&lt;/P&gt;

&lt;P&gt;and from another search fields below output is populated &lt;/P&gt;

&lt;H2&gt;name      -      age&lt;/H2&gt;

&lt;P&gt;joey                43&lt;/P&gt;

&lt;P&gt;So I want my output.csv files to become below format.&lt;/P&gt;

&lt;H2&gt;name    -        age&lt;/H2&gt;

&lt;P&gt;bob                23&lt;BR /&gt;
joey               43&lt;/P&gt;

&lt;P&gt;Any help?&lt;/P&gt;

&lt;P&gt;Bests!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 14:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Append-and-Update-the-CSV-from-a-search-output/m-p/502457#M85598</guid>
      <dc:creator>gozdeyildiz</dc:creator>
      <dc:date>2020-03-23T14:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Append and Update the CSV from a search output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Append-and-Update-the-CSV-from-a-search-output/m-p/502458#M85599</link>
      <description>&lt;P&gt;CSV files must be updated in their entirety.  The usual method is to read in the CSV, append the results of a search, deduplicate the results, and write them to the CSV.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup output.csv
| append [ &amp;lt;your search&amp;gt; ]
| dedup name
| outputlookup outputs.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Mar 2020 17:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Append-and-Update-the-CSV-from-a-search-output/m-p/502458#M85599</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-23T17:45:04Z</dc:date>
    </item>
  </channel>
</rss>

