<?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: Splunk not indexing modified files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83421#M17334</link>
    <description>&lt;P&gt;Unfortunately no. We have since moved on from this for now. If you do find a result please let us know here.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2012 23:41:55 GMT</pubDate>
    <dc:creator>phoenixdigital</dc:creator>
    <dc:date>2012-01-18T23:41:55Z</dc:date>
    <item>
      <title>Splunk not indexing modified files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83416#M17329</link>
      <description>&lt;P&gt;I have a FTP data collector which pulls in files from an FTP server and dumps them into a directory monitored by Splunk.&lt;/P&gt;

&lt;P&gt;The files are all of the IDA00*.dat files and are sourced from &lt;A href="ftp://ftp2.bom.gov.au/anon/gen/fwo/"&gt;ftp://ftp2.bom.gov.au/anon/gen/fwo/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My script checks this ftp server about every 6 hours and if the modified date has changed on the files it will redownload them and replace them in /home/phoenix/data/bom/&lt;/P&gt;

&lt;P&gt;Splunk is setup to monitor this directory with the following conf files&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///home/phoenix/data/bom]
disabled = 0
followTail = 0
host = BOM
index = bom
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...[/\\]bom[/\\]IDA00001.dat]
KV_MODE = none
SHOULD_LINEMERGE = false
sourcetype = bomIDA00001
REPORT-extractIDA00001 = IDA00001_Fields
priority = 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;priority 100 required as Splunk ignores .dat files by default. I have had to remove .dat from /opt/splunk/etc/default/props.conf as well recently as the priority stopped working for some reason and the data was being treated as binary (but thats for another topic)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[IDA00001_Fields]
DELIMS = "#"
FIELDS = loc_id,location,state,forecast_date,issue_date,issue_time,min_0,max_0,min_1,max_1,min_2,max_2,min_3,max_3,min_4,max_4,min_5,max_5,min_6,max_6,min_7,max_7,forecast_0,forecast_1,forecast_2,forecast_3,forecast_4,forecast_5,forecast_6,forecast_7,dummy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now this seemed to be working ok for a while but for some reason it has stopped indexing files even though new files are coming in with completely different data (in particular the forecast_date). I have can only see data in the index=bom from the 28th of Sept and back. It is the 29th and there should be data in Splunk for that.&lt;/P&gt;

&lt;P&gt;Running the following returns some actions on the files in question&lt;/P&gt;

&lt;P&gt;grep IDA00001.dat /opt/splunk/var/log/splunk/splunkd.log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-29-2011 13:52:24.489 +1000 INFO  WatchedFile - File too small to check seekcrc, probably truncated.  Will re-read entire file='/home/phoenix/data/bom/IDA00001.dat'.
09-29-2011 14:48:50.167 +1000 INFO  WatchedFile - Checksum for seekptr didn't match, will re-read entire file='/home/phoenix/data/bom/IDA00001.dat'.
09-29-2011 14:48:50.167 +1000 INFO  WatchedFile - Will begin reading at offset=0 for file='/home/phoenix/data/bom/IDA00001.dat'.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So it seems like Splunk is working on the files. Are they being indexed though as the data is not showing up?&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 05:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83416#M17329</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2011-09-29T05:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing modified files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83417#M17330</link>
      <description>&lt;P&gt;Is it possible the timestamping has changed? Just thinking it might be indexing the data but its been put with a different date/time to that which you are expecting&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 09:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83417#M17330</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-09-29T09:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing modified files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83418#M17331</link>
      <description>&lt;P&gt;Unfortunately no after clearing monitored directory then clearing the indexes with the command&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk stop; /opt/splunk/bin/splunk clean eventdata -f -index bom; /opt/splunk/bin/splunk clean eventdata -f -index bom_summary; /opt/splunk/bin/splunk start&lt;/P&gt;

&lt;P&gt;I retrieve the files again and Splunk shows zero events in the index.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 01:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83418#M17331</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2011-09-30T01:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing modified files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83419#M17332</link>
      <description>&lt;P&gt;Hi, I am facing similar problem. Any resolution??&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 23:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83419#M17332</guid>
      <dc:creator>hbhatta</dc:creator>
      <dc:date>2012-01-18T23:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing modified files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83420#M17333</link>
      <description>&lt;P&gt;Hi, I am facing similar problem. Any resolution??&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 23:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83420#M17333</guid>
      <dc:creator>hbhatta</dc:creator>
      <dc:date>2012-01-18T23:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing modified files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83421#M17334</link>
      <description>&lt;P&gt;Unfortunately no. We have since moved on from this for now. If you do find a result please let us know here.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 23:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83421#M17334</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2012-01-18T23:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing modified files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83422#M17335</link>
      <description>&lt;P&gt;i think you have to clean the _fishbuket index on the forwarder, that's the location were splunk stores the information which file is indexed or not&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 10:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83422#M17335</guid>
      <dc:creator>Christian</dc:creator>
      <dc:date>2012-03-08T10:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing modified files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83423#M17336</link>
      <description>&lt;P&gt;Something I just remembered about this issue.&lt;/P&gt;

&lt;P&gt;The file had the extension .dat and this is classified as a binary file by one of the splunk configuration files.&lt;/P&gt;

&lt;P&gt;We ended up removing it from /etc/system/default/props.conf under the stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::....(0t|a|ali|asa|au|bmp|cg|cgi|class|d|dat|deb|del|dot|dvi|dylib|elc|eps|exe|ftn|gif|hlp|hqx|hs|icns|ico|inc|iso|jame|jin|jpeg|jpg|kml|la|lhs|lib|lo|lock|mcp|mid|mp3|mpg|msf|nib|o|obj|odt|ogg|ook|opt|os|pal|pbm|pdf|pem|pgm|plo|png|po|pod|pp|ppd|ppm|ppt|prc|ps|psd|psym|pyc|pyd|rast|rb|rde|rdf|rdr|rgb|ro|rpm|rsrc|so|ss|stg|strings|tdt|tif|tiff|tk|uue|vhd|xbm|xlb|xls|xlw)]
sourcetype = known_binary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Obviously the correct way to do this would be to add this to your props.conf in your app which should override this default.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 01:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-modified-files/m-p/83423#M17336</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2012-03-23T01:03:58Z</dc:date>
    </item>
  </channel>
</rss>

