<?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 load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56495#M11005</link>
    <description>&lt;P&gt;Do you not want to do this as a lookup?... &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups"&gt;http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If not you should be able to use the dedup command to show the latest event (i.e. the latest csv) depending on how you are indexing it.&lt;/P&gt;

&lt;P&gt;MHIbbin&lt;/P&gt;</description>
    <pubDate>Tue, 11 Sep 2012 10:19:02 GMT</pubDate>
    <dc:creator>MHibbin</dc:creator>
    <dc:date>2012-09-11T10:19:02Z</dc:date>
    <item>
      <title>How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56494#M11004</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to load a .csv file into splunk, using sourcetype(csv). Upload of data is working fine but the only issue if i change the data in this .csv file, new data get appended to the old data. what i need is to replace the old with new.&lt;BR /&gt;
Example: if i have 4 lines in the csv initially &amp;amp; if i delete one of its line and add 2 new lines.&lt;BR /&gt;
My new csv data should contain only 4 lines.&lt;BR /&gt;
Right now when i am doing this, i am getting 9 lines(4-Old &amp;amp; 5-New) of data.&lt;/P&gt;

&lt;P&gt;Please help me with the configurations. &lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56494#M11004</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2012-09-11T10:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56495#M11005</link>
      <description>&lt;P&gt;Do you not want to do this as a lookup?... &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups"&gt;http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If not you should be able to use the dedup command to show the latest event (i.e. the latest csv) depending on how you are indexing it.&lt;/P&gt;

&lt;P&gt;MHIbbin&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:19:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56495#M11005</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-09-11T10:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56496#M11006</link>
      <description>&lt;P&gt;CSVs the way you mean them are treated in a different way than regular log files.&lt;BR /&gt;
There are 2 basic kinds: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;"just CSVs", which are only accessed via "| inputcsv" and "| outputcsv"&lt;/LI&gt;
&lt;LI&gt;lookup CSVs, which are accessed with commands "| lookup", "| inputlookup" and "| outputlookup"&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;In the former case you can:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;load your CSV in $SPLUNK_HOME/var/run/splunk/filename.csv&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;execute the search:&lt;/P&gt;

&lt;P&gt;| inputcsv filename.csv&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;In the latter you can:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;configure it from the Manager and upload the csv file&lt;/LI&gt;
&lt;LI&gt;you will be able to replace the file under this directory $SPLUNK_HOME/etc/apps/APPNAME/lookups/filename.csv. &lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;execute searches like:&lt;/P&gt;

&lt;P&gt;.... | lookup configname inputfield OUTPUT outputfield&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56496#M11006</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2012-09-11T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56497#M11007</link>
      <description>&lt;P&gt;I tried the lookup but it didn't serve my purpose since the replacement of data wasn't happening.&lt;BR /&gt;
Also i need to join this .csv file with another log file.&lt;BR /&gt;
Therefore wen the data in csv file change, the result of the Join Query also should change.&lt;BR /&gt;
Any Configuration files i need to look into. I am basically trying to automate it.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56497#M11007</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2012-09-11T10:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56498#M11008</link>
      <description>&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56498#M11008</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2012-09-11T10:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56499#M11009</link>
      <description>&lt;P&gt;Thanks!! Appending worked Just fine!&lt;/P&gt;

&lt;P&gt;Can i use this "| inputcsv" command to Join with another log file?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56499#M11009</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2012-09-11T10:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56500#M11010</link>
      <description>&lt;P&gt;It will probably will be slower than with the "| lookup" command and limited to some 50k results, but | join joinfield [|inputcsv ... | fields + joinfield otherfield] might do&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:54:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56500#M11010</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2012-09-11T10:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56501#M11011</link>
      <description>&lt;P&gt;Any luck completing this effort?  I'm trying to do the same thing.  I have tool the produces a CSV report every hour, I would like to pull the data into Splunk in an automated fashion and then build real time dashboards from the data.  Thank you for any help!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 14:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56501#M11011</guid>
      <dc:creator>jpmackl</dc:creator>
      <dc:date>2015-11-19T14:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a CSV file into Splunk &amp; Change the csv file dynamically, so that data is refreshed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56502#M11012</link>
      <description>&lt;P&gt;Any luck with this jpmackl ? I want to do something similar&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 11:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-load-a-CSV-file-into-Splunk-Change-the-csv-file/m-p/56502#M11012</guid>
      <dc:creator>colinmchugo</dc:creator>
      <dc:date>2016-09-02T11:10:51Z</dc:date>
    </item>
  </channel>
</rss>

