All Apps and Add-ons

ERROR ExecProcessor - Message from runFlume.sh

vanand
New Member

Folks, APM_dyantrace runFlume.sh failed to process the events and logging following messages in splunk log. Any insight what causing this.

04-06-2015 03:05:01.811 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh" 2015-04-06 03:05:01,811 (SinkRunner-PollingRunner-DefaultSinkProcessor) [ERROR - org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:160)] Unable to deliver event. Exception follows.
04-06-2015 03:05:01.811 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh" org.apache.flume.EventDeliveryException: Failed to process transaction
04-06-2015 03:05:01.811 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh" Caused by: java.io.IOException: Stale file handle
= ... 4 more
04-06-2015 03:06:02.819 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh" 2015-04-06 03:06:02,819 (SinkRunner-PollingRunner-DefaultSinkProcessor) [ERROR - org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:160)] Unable to deliver event. Exception follows.
04-06-2015 03:06:02.819 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh" org.apache.flume.EventDeliveryException: Failed to process transaction
04-06-2015 03:06:02.819 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh" at org.apache.flume.sink.RollingFileSink.process(RollingFileSink.java:218)
at java.lang.Thread.run(Thread.java:662)
04-06-2015 03:06:02.819 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh" Caused by: java.io.IOException: Stale file handle
04-06-2015 03:06:02.819 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh" at java.io.FileOutputStream.writeBytes(Native Method)
at org.apache.flume.sink.RollingFileSink.process(RollingFileSink.java:195)
04-06-2015 03:06:02.820 -0700 ERROR ExecProcessor - message from "/splunk/etc/apps/APM_dynatrace/bin/runFlume.sh"

Thanks,

0 Karma
1 Solution

Dynatrace
Path Finder

Stale file handles usually result when a file or directory is removed while an application is attempting to write to that file. There might be a mismatch in your environment between Flume rolling over new files versus Splunk taking in those files.

The Flume configuration distributed with our Splunk application is a good baseline but might not work for all environments. I would suggest decreasing the sink.rollInterval in /splunk/etc/apps/APM_dynatrace/bin/flume-conf.properties until you no longer see this error. Decreasing this value will cause Flume to roll to a new file more frequently.

hope this helps!

View solution in original post

Dynatrace
Path Finder

Stale file handles usually result when a file or directory is removed while an application is attempting to write to that file. There might be a mismatch in your environment between Flume rolling over new files versus Splunk taking in those files.

The Flume configuration distributed with our Splunk application is a good baseline but might not work for all environments. I would suggest decreasing the sink.rollInterval in /splunk/etc/apps/APM_dynatrace/bin/flume-conf.properties until you no longer see this error. Decreasing this value will cause Flume to roll to a new file more frequently.

hope this helps!

vanand
New Member

That works. Thanks.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...