<?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: File not being read by Splunk in a directory while others are in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374225#M67812</link>
    <description>&lt;P&gt;That's the output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/var/middleware/inventory/var/tomcat_jvm.out
                file position = 764
                file size = 764
                parent = /var/middleware/inventory/var/
                percent = 100.00
                type = open file
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Oct 2017 12:24:39 GMT</pubDate>
    <dc:creator>SirHill17</dc:creator>
    <dc:date>2017-10-11T12:24:39Z</dc:date>
    <item>
      <title>File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374214#M67801</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a directory which is defined in inputs.conf on a host (which has UF running), directory is:&lt;/P&gt;

&lt;P&gt;/var/middleware/inventory/var&lt;/P&gt;

&lt;P&gt;As per the logs (splunkd.log), the directory is now monitored:&lt;/P&gt;

&lt;P&gt;10-04-2017 11:50:50.105 +0200 INFO  TailingProcessor - Adding watch on path: /var/middleware/inventory/var.&lt;/P&gt;

&lt;P&gt;In this directory there are nine different files. But only eight of them are read. They all have the same permissions and the content format is also the same.&lt;/P&gt;

&lt;P&gt;Does anyone know why the last file is not being read by Splunk? There is no log about it.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374214#M67801</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2017-10-04T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374215#M67802</link>
      <description>&lt;P&gt;Try running:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;./splunk list inputstatus&lt;/CODE&gt; on the UF and looking for the file in question. It should show you why the tailReader may not have actioned it. If you have many files, it can be easier to output the command to a file. &lt;/P&gt;

&lt;P&gt;Or try searching:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=_internal source=*splunkd.log tailreader ERROR&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;might turn up something like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;10-03-2017 21:27:33.978 -0400 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/home/splunker/splunk/var/log/splunk/splunk_app_stream.log.8).  Last time we saw this initcrc, filename was different.  You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source.  Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374215#M67802</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-10-04T14:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374216#M67803</link>
      <description>&lt;P&gt;Are you sure this command can be run on the UF ? I got the below error message when running it (but I am able to do it on the Splunk Servers):&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;./splunk list inputstatus Command&lt;BR /&gt;
error: The subcommand 'inputstatus' is&lt;BR /&gt;
not valid for command 'list'. Data&lt;BR /&gt;
forwarding configuration management&lt;BR /&gt;
tools.   Commands:&lt;BR /&gt;
      enable local-index [-parameter ] ...&lt;BR /&gt;
      disable local-index [-parameter ] ...&lt;BR /&gt;
      display local-index&lt;BR /&gt;
      add [forward-server|search-server] server&lt;BR /&gt;
      remove [forward-server|search-server] server&lt;BR /&gt;
      list [forward-server|search-server]&lt;BR /&gt;&lt;BR /&gt;
Objects:&lt;BR /&gt;
      forward-server       a Splunk forwarder to forward data to be&lt;BR /&gt;
indexed&lt;BR /&gt;
      search-server        a Splunk server to forward searches&lt;BR /&gt;
      local-index          a local search index on the Splunk server&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Searching for &lt;STRONG&gt;index=_internal source=*splunkd.log tailreader ERROR&lt;/STRONG&gt; there is no log for the host where I am trying to get the file to be read.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374216#M67803</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2017-10-04T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374217#M67804</link>
      <description>&lt;P&gt;What version is the UF? If it is pre 6.3-ish then you may not have the option to run it like that. You would need to try this:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2011/01/02/did-i-miss-christmas-2.html"&gt;https://www.splunk.com/blog/2011/01/02/did-i-miss-christmas-2.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, try &lt;CODE&gt;grep ERROR splunkd.log&lt;/CODE&gt; on the on the UF located at &lt;CODE&gt;$SPLUNK_HOME/var/log/splunk/splunkd.log&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Do you see any logs from this UF if you run &lt;CODE&gt;index=_internal source=*splunkd.log&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 15:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374217#M67804</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-10-04T15:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374218#M67805</link>
      <description>&lt;P&gt;Got it, UF version is 6.2.7. The servers are on 6.4.3.&lt;BR /&gt;
It explains, if I could have it upgraded soon I will have a try but anyway I also already tried with crcSalt = .&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 15:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374218#M67805</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2017-10-04T15:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374219#M67806</link>
      <description>&lt;P&gt;ok so try the rest call on the UF. Just need to make sure the UF is serving 8089, you can get the same output as the &lt;CODE&gt;./splunk list inputstatus&lt;/CODE&gt; command. Also check the splunkd.log locally for the TailReader logs. &lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 15:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374219#M67806</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-10-04T15:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374220#M67807</link>
      <description>&lt;P&gt;Ok so I upgraded the forwarder to version 6.4.3 and run the command ./splunk list inputstatus&lt;/P&gt;

&lt;P&gt;The output contains the file which is not read and there is still no error in the logs.&lt;/P&gt;

&lt;P&gt;I did test to renamed the file to tomcat_jvm2.out and Splunk is picking it up...&lt;/P&gt;

&lt;P&gt;Any other suggestion?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 08:06:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374220#M67807</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2017-10-11T08:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374221#M67808</link>
      <description>&lt;P&gt;Try to run this command, it will display which files has been read by splunk and which one is not and also gives reason why it didn't read.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/bin/splunk _internal call /services/admin/inputstatus/TailingProcessor:FileStatus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 08:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374221#M67808</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-10-11T08:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374222#M67809</link>
      <description>&lt;P&gt;It helps thanks!&lt;BR /&gt;
I will let the forwarder running for few days and monitor if the file will be read or not and use the command to get info.&lt;BR /&gt;
I will come back with comments.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 08:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374222#M67809</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2017-10-11T08:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374223#M67810</link>
      <description>&lt;P&gt;This is the exact same command I provided, fyi. Same output. &lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374223#M67810</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-10-11T12:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374224#M67811</link>
      <description>&lt;P&gt;Please post that status of the file you are looking for. We are not just looking that the ouptut contains the file...we want the status. If you change the name and it gets picked up, it must be failing CRC Check, or have some other issue with rotation, etc:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/var/log/secure
    file position = 677
    file size = 677
    parent = /var/log
    percent = 100.00
    type = finished reading
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:19:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374224#M67811</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-10-11T12:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374225#M67812</link>
      <description>&lt;P&gt;That's the output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/var/middleware/inventory/var/tomcat_jvm.out
                file position = 764
                file size = 764
                parent = /var/middleware/inventory/var/
                percent = 100.00
                type = open file
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374225#M67812</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2017-10-11T12:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374226#M67813</link>
      <description>&lt;P&gt;Thats better. The file is being read. &lt;/P&gt;

&lt;P&gt;Perhaps your timestamps are messed up? Have you tried:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=* host=&amp;lt;yourForwarder&amp;gt; source=/var/middleware/inventory/var/tomcat_jvm.out&lt;/CODE&gt; over all time??&lt;/P&gt;

&lt;P&gt;If you do:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;tail -10 tomcat_jvm.out&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What do the last few events look like?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374226#M67813</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-10-11T12:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374227#M67814</link>
      <description>&lt;P&gt;This output suggest that Splunk has already read the file so it won't re-read unless you clean fish bucket.  &lt;/P&gt;

&lt;P&gt;The issue has with the rate at which logs are written and then rotated. Splunk UF is unable to match this load.&lt;/P&gt;

&lt;P&gt;In my  environment we faced similar issue with reading firewall logs which were generated/rotated  at very fast rate (5GB/30minutes). We were able to solve our problem after switching to Heavy Forwarder.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:40:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374227#M67814</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2017-10-11T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374228#M67815</link>
      <description>&lt;P&gt;Hey hardikJsheth, can you please post your own answer and thread? I think you are getting way ahead of yourself, but feel free to work your own answer post above, rather than hijacking this one. &lt;/P&gt;

&lt;P&gt;switching to a hf is a bad and downvote worthy idea and could have been avoided completely by simply editing limits.conf of the UF (defaults to maxKBps=256) or using parallel pipes, etc. a uf can easily keep up if tuned properly. not to mention the HF impacts the host and network more&lt;/P&gt;

&lt;P&gt;I havent gotten the feeling they are trying to re-read anything...so fishbucket might help if OP is trying to reread but as far as i can tell they cant even find the original events. Furthermore the file is open, which means tailreader is watching for new events! lets find those before we go too far.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:59:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374228#M67815</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-10-11T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374229#M67816</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;/var/middleware/inventory/var/tomcat.out
                file position = 74
                file size = 74
                parent = /var/middleware/inventory/var/
                percent = 100.00
                type = finished reading

/var/middleware/inventory/var/tomcat_jvm.out
                file position = 764
                file size = 764
                parent = /var/middleware/inventory/var/
                percent = 100.00
                type = open file
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What's the difference between "open file" and "finished reading" ? Really strange behaviour today, only the file that was not read before has been read today.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374229#M67816</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2017-10-12T12:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374230#M67817</link>
      <description>&lt;P&gt;Open file means it being tailed, finished reading probably means we hit an end of file. &lt;/P&gt;

&lt;P&gt;Ok, so since we have ruled out Splunk not being able to read the files, how many files are you monitoring on this server? Just this directory? just these 9? or many files???&lt;/P&gt;

&lt;P&gt;In my dealings with middleware teams, especially when I see jvms involved, the UF may require tuning to ensure we can move data fast enough to remain "realtime".&lt;/P&gt;

&lt;P&gt;Take a look at &lt;CODE&gt;$SPLUNK_HOME/var/log/splunk/metrics.log&lt;/CODE&gt; and grep for "blocked=true" are you seeing any blocking?&lt;/P&gt;

&lt;P&gt;Also check to see if you are perhaps hitting large files that are taking up all the bandwidth in &lt;CODE&gt;splunk.log&lt;/CODE&gt;. (search for "large file" in splunkd.log and you should see the batch processor being invoked)&lt;/P&gt;

&lt;P&gt;THEN we can start to talk about tuning, like @hardikJsheth alluded to&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 13:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374230#M67817</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-10-12T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: File not being read by Splunk in a directory while others are</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374231#M67818</link>
      <description>&lt;P&gt;Since the UF version was upgraded it resolved the problem, not sure what was the issue but thanks for the useful command you provided which helps for other troubleshooting.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 07:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-not-being-read-by-Splunk-in-a-directory-while-others-are/m-p/374231#M67818</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2017-10-25T07:57:58Z</dc:date>
    </item>
  </channel>
</rss>

