<?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 monitor multiple files in folders in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141556#M28983</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I want to monitor multiple csv files in a folder name Fwd Test on E drive. I have added below code to my inputs.conf file but Splunk is not picking up data. Do i need to make any changes in props.conf as well?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\Fwd Test]
index=dir_test
sourcetype=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;OL&gt;
&lt;LI&gt;My CSV files in this folder get replaced every 1 hour from Autosys jobs. With this Splunk is duplicating the data indexing. For example: if initially my file report_output has 10 rows initially and after one hour when autosys jobs replace that file with new data for total 20 rows, splunk will index 10+10+20 events. Kindly help&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Thu, 25 Sep 2014 21:55:40 GMT</pubDate>
    <dc:creator>ketan_chanana</dc:creator>
    <dc:date>2014-09-25T21:55:40Z</dc:date>
    <item>
      <title>monitor multiple files in folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141556#M28983</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I want to monitor multiple csv files in a folder name Fwd Test on E drive. I have added below code to my inputs.conf file but Splunk is not picking up data. Do i need to make any changes in props.conf as well?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://E:\Fwd Test]
index=dir_test
sourcetype=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;OL&gt;
&lt;LI&gt;My CSV files in this folder get replaced every 1 hour from Autosys jobs. With this Splunk is duplicating the data indexing. For example: if initially my file report_output has 10 rows initially and after one hour when autosys jobs replace that file with new data for total 20 rows, splunk will index 10+10+20 events. Kindly help&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 25 Sep 2014 21:55:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141556#M28983</guid>
      <dc:creator>ketan_chanana</dc:creator>
      <dc:date>2014-09-25T21:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: monitor multiple files in folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141557#M28984</link>
      <description>&lt;P&gt;This question is unclear.  You say that Splunk is not picking up data.  Then you say that splunk is duplicating the data.&lt;BR /&gt;
These two statements seem to be in conflict.  Can you clarify?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 09:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141557#M28984</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-09-26T09:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: monitor multiple files in folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141558#M28985</link>
      <description>&lt;P&gt;Did you restart Splunk after updating the inputs config?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 12:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141558#M28985</guid>
      <dc:creator>srioux</dc:creator>
      <dc:date>2014-09-26T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: monitor multiple files in folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141559#M28986</link>
      <description>&lt;P&gt;"Splunk is not picking up data." do you mean that the first version of the file was indexed, but not the next ones ?&lt;/P&gt;

&lt;P&gt;search in the _internal splunkd.log for the file name, they may be skipped because considered as duplicates.&lt;BR /&gt;
Please double check that your new files do not have identical header than the previous one.&lt;/P&gt;

&lt;P&gt;and read this documents with care : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/HowLogFileRotationIsHandled"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/HowLogFileRotationIsHandled&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141559#M28986</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-09-26T15:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: monitor multiple files in folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141560#M28987</link>
      <description>&lt;P&gt;I think the data is now picked from the files but, when we update the existing csv files splunk doesn't take only the updated rows it take the whole CSV content again.. This can be reproduced easily.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:39:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141560#M28987</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-09-26T15:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: monitor multiple files in folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141561#M28988</link>
      <description>&lt;P&gt;If your application is adding rows to the file by adding bytes to the end, then it is behaving like a logfile, and splunk will handle that.&lt;/P&gt;

&lt;P&gt;if your application is adding rows to the file by rewriting the entire file, and the bytes are different, then it is not behaving like a logfile, and splunk is not designed to handle that.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-multiple-files-in-folders/m-p/141561#M28988</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-09-26T15:50:40Z</dc:date>
    </item>
  </channel>
</rss>

