<?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 How to Read a CSV file (with time-stamped data for past 24 hours) and Index the data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322468#M60077</link>
    <description>&lt;P&gt;Hello All,&lt;BR /&gt;
My client's machine generates a daily data log (in csv format). How do one configure splunk to read &amp;amp; index the past 1 day of data. The csv file has the following format.&lt;BR /&gt;
Header &amp;gt;&amp;gt; Datetime, Tag1, Tag2&lt;BR /&gt;
Row1 &amp;gt;&amp;gt; 2017-07-01 23:00:00, 23.45, 12.56&lt;BR /&gt;
Row2 &amp;gt;&amp;gt; 2017-07-01 23:01:00, 33.45, 22.56&lt;/P&gt;

&lt;P&gt;Pls. advise. Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2017 16:25:31 GMT</pubDate>
    <dc:creator>htkwan</dc:creator>
    <dc:date>2017-07-21T16:25:31Z</dc:date>
    <item>
      <title>How to Read a CSV file (with time-stamped data for past 24 hours) and Index the data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322468#M60077</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;
My client's machine generates a daily data log (in csv format). How do one configure splunk to read &amp;amp; index the past 1 day of data. The csv file has the following format.&lt;BR /&gt;
Header &amp;gt;&amp;gt; Datetime, Tag1, Tag2&lt;BR /&gt;
Row1 &amp;gt;&amp;gt; 2017-07-01 23:00:00, 23.45, 12.56&lt;BR /&gt;
Row2 &amp;gt;&amp;gt; 2017-07-01 23:01:00, 33.45, 22.56&lt;/P&gt;

&lt;P&gt;Pls. advise. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 16:25:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322468#M60077</guid>
      <dc:creator>htkwan</dc:creator>
      <dc:date>2017-07-21T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read a CSV file (with time-stamped data for past 24 hours) and Index the data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322469#M60078</link>
      <description>&lt;P&gt;Please see below,&lt;/P&gt;

&lt;P&gt;create  $SPLUNK_HOME/etc/apps/yourapp/local/inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor://$SPLUNK_HOME/input/myfile.csv]&lt;BR /&gt;
 host=myhost&lt;BR /&gt;
 source=mysource&lt;BR /&gt;
 sourcetype=mysourcetype&lt;BR /&gt;
 index=myindex&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/apps/your app/local/props.conf&lt;BR /&gt;
 [source::mysource]&lt;BR /&gt;
 REPORT-mysource = mysource_csv&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/apps/yourapp/local/transforms.conf&lt;BR /&gt;
 [mysource_csv]&lt;BR /&gt;
 DELIMS = ","&lt;BR /&gt;
 FIELDS = "field1","field2","field3","field4","field5".....&lt;/P&gt;

&lt;P&gt;Go through below link for further details,&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Extractfieldsfromfileheadersatindextime" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:02:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322469#M60078</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read a CSV file (with time-stamped data for past 24 hours) and Index the data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322470#M60079</link>
      <description>&lt;P&gt;Thanks very much&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 05:04:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322470#M60079</guid>
      <dc:creator>htkwan</dc:creator>
      <dc:date>2017-07-22T05:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read a CSV file (with time-stamped data for past 24 hours) and Index the data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322471#M60080</link>
      <description>&lt;P&gt;If you got it working, do click &lt;CODE&gt;Accept&lt;/CODE&gt; to close your question.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 20:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Read-a-CSV-file-with-time-stamped-data-for-past-24-hours/m-p/322471#M60080</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-22T20:56:19Z</dc:date>
    </item>
  </channel>
</rss>

