<?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 edit inputs.conf to monitor multiple files with different timestamps  from same folder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261350#M50163</link>
    <description>&lt;P&gt;I checked logs.. I get Filewatcher: Error getting attributes from input path wild card.. Is there anything wrong with my input path with wildcard.. I too suspect that.. Is my input path valid..what change should i make in path to pick up correct file..? please let me know.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2016 06:39:53 GMT</pubDate>
    <dc:creator>k_harini</dc:creator>
    <dc:date>2016-12-05T06:39:53Z</dc:date>
    <item>
      <title>How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261344#M50157</link>
      <description>&lt;P&gt;I have to monitor 2 files of different source type from same folder with different timestamps continuously for every 15 mins&lt;/P&gt;

&lt;P&gt;Both file names start with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sm__nr_ur.csv
sm__tickets.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I did this for both files in input.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///home/gcaaxfer/data/*NR*.csv]
disabled = false
host_segment = 3
index = my_index
sourcetype = my_request

[monitor:///home/gcaaxfer/data/*ticket*.csv]
disabled = false
host_segment = 3
index = my_index
sourcetype = my_request
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is not working. Even if i whitelist with ticket/.csv for that monitor, it doesn't seem to work. Any idea how to get this to working? Please help with your inputs. Thanks!&lt;/P&gt;

&lt;P&gt;I have used &amp;lt;*&amp;gt; symbol.. but its not getting displayed&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 09:44:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261344#M50157</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2016-12-02T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261345#M50158</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/191898"&gt;@k_harini&lt;/a&gt; - Just so you know, there is special markup language on this site so certain symbols will transform your post.  If you wrap a word in the asterisk symbol &lt;CODE&gt;*&lt;/CODE&gt; or &lt;CODE&gt;_&lt;/CODE&gt;, without wrapping it in a &lt;CODE&gt;code sample&lt;/CODE&gt;, it will &lt;EM&gt;italicize&lt;/EM&gt; the word. If you wish to show the &lt;CODE&gt;*&lt;/CODE&gt; (i.e. you are displaying sample code), simply click on the Code Sample icon to the right of the Blockquote icon in the formatting toolbar. That is how I was able to edit your post so that the &lt;CODE&gt;*&lt;/CODE&gt; will display.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261345#M50158</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2020-09-29T11:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261346#M50159</link>
      <description>&lt;P&gt;Here are a few questions that may help:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Are these files on the same machine as the Splunk indexer?&lt;/LI&gt;
&lt;LI&gt;What user is running Splunk? Does that user have permission to access the &lt;CODE&gt;/home/gcaaxfer/data&lt;/CODE&gt; directory and the files?&lt;/LI&gt;
&lt;LI&gt;Splunk is case-sensitive. In your inputs.conf you have &lt;CODE&gt;*NR*&lt;/CODE&gt; but the &lt;CODE&gt;nr&lt;/CODE&gt; is lower-case in the file name you showed. Are your stanzas correct with regards to upper/lower case?&lt;/LI&gt;
&lt;LI&gt;Does my_index exist?&lt;/LI&gt;
&lt;LI&gt;Are you checking for your data by searching with &lt;CODE&gt;index=my_index&lt;/CODE&gt; specifically? Are you sure that your search is covering the proper time range? Try searching "all-time".&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;You should not need to use a whitelist to get these files.&lt;BR /&gt;
You can also take a look at the Splunk internal log, splunkd.log, to check for errors. You can find it at $SPLUNK_HOME/var/log/splunk/splunkd.log&lt;BR /&gt;
You should see messages when Splunk starts, including messages telling what files it is indexing - and if it is not able to the index the files, there should be error messages.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 01:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261346#M50159</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-12-03T01:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261347#M50160</link>
      <description>&lt;P&gt;Thanks for your response..&lt;BR /&gt;
1. Yes same machine..  no forwarder here..&lt;BR /&gt;
2. Users have access to the folder and files are transferred here through sftp&lt;BR /&gt;
3. That is correct.. its NR (both file name and monitor)&lt;BR /&gt;
4. Yes index exist.. and both have different indexes&lt;/P&gt;

&lt;P&gt;If i do one time indexing it works fine.. on adding monitor to the file .. its not getting indexed.. should i add  crcsalt flag as all files start with SM..and some timestamp.. will it work..?  I will check the logs too... Thank you..&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 05:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261347#M50160</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2016-12-03T05:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261348#M50161</link>
      <description>&lt;P&gt;ok thanks...&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 06:01:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261348#M50161</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2016-12-03T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261349#M50162</link>
      <description>&lt;P&gt;Check please the &lt;CODE&gt;splunkd.log&lt;/CODE&gt; ...&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 07:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261349#M50162</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-12-03T07:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261350#M50163</link>
      <description>&lt;P&gt;I checked logs.. I get Filewatcher: Error getting attributes from input path wild card.. Is there anything wrong with my input path with wildcard.. I too suspect that.. Is my input path valid..what change should i make in path to pick up correct file..? please let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 06:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261350#M50163</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2016-12-05T06:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261351#M50164</link>
      <description>&lt;P&gt;I agree with  lguinn  , white listing will solve the problem ( it did for me , the only thing I need to make sure is that the monitored folder is a little bit different&lt;BR /&gt;&lt;BR /&gt;
for example -  input.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor:///home/gcaaxfer/data/]
 disabled = false
 host_segment = 3
 index = my_index
 sourcetype = my_request
 whitelist = (sm_nr_.*\.csv)  
 crcSalt = &amp;lt;SOURCE&amp;gt;

 [monitor:///home/gcaaxfer/data]
 disabled = false
 host_segment = 3
 index = my_index
 sourcetype = my_request
 whitelist =(sm_.*tickets\.csv)
 crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;notice that one of the monitored path has '/' at the end and one without.&lt;/P&gt;

&lt;P&gt;this enabled me to monitor easily different files in the same directory &lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 08:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261351#M50164</guid>
      <dc:creator>gooza</dc:creator>
      <dc:date>2016-12-05T08:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to monitor multiple files with different timestamps  from same folder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261352#M50165</link>
      <description>&lt;P&gt;The issue here is that you have overlapping monitor stanzas.  The * in the source implicitly tells Splunk to monitor files in /home/gcaaxfer/data/ for both, resulting in the overlapping stanzas and only one of them being read.&lt;/P&gt;

&lt;P&gt;The recommended approach to solve this issue is to create one stanza in inputs.conf to read in both sets of files and also deploy a props.conf within the same add-on on the Forwarder to specify the sourcetype based on the source.  As follows: &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf:&lt;/STRONG&gt;&lt;BR /&gt;
[monitor:///home/gcaaxfer/data]&lt;BR /&gt;
whitelist = (*NR*.csv | *ticket*.csv)&lt;BR /&gt;
host_segment = 3&lt;BR /&gt;
index = my_index&lt;/P&gt;

&lt;H2&gt;disabled = false&lt;/H2&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf:&lt;/STRONG&gt;&lt;BR /&gt;
[source::.../*NR*.csv]&lt;BR /&gt;
sourcetype = request_nr&lt;/P&gt;

&lt;P&gt;[source::.../*ticket*.csv]&lt;/P&gt;

&lt;H2&gt;sourcetype = request_ticket&lt;/H2&gt;

&lt;P&gt;Now that you've assigned them to separate sourcetypes, you can easily update your props.conf on your Indexers and/or Heavy Forwarders to properly perform the separate time extractions.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:07:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-monitor-multiple-files-with-different/m-p/261352#M50165</guid>
      <dc:creator>svaleson</dc:creator>
      <dc:date>2020-09-29T14:07:04Z</dc:date>
    </item>
  </channel>
</rss>

