Hi all,
I am trying to read logs from a Windows server, which is a different machine than the collector.
I get the following error:
2015-02-11 09:31:03 WARNING [com.logfile.WP@ADS Server Log Scraper_0] java.io.FileNotFoundException: \\10.64.80.62\LogFileMonitor\TestFile.txt (Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at com.google.common.io.Files$FileByteSource.openStream(Files.java:124)
at com.google.common.io.Files$FileByteSource.openStream(Files.java:114)
at com.google.common.io.ByteSource$AsCharSource.openStream(ByteSource.java:287)
at com.google.common.io.CharStreams$3.getInput(CharStreams.java:508)
at com.google.common.io.CharStreams$3.getInput(CharStreams.java:505)
at com.google.common.io.CharStreams.readLines(CharStreams.java:319)
at com.google.common.io.Files.readLines(Files.java:690)
at com.logfile.WP.execute(WP.java:123)
at com.dynatrace.diagnostics.sdk.UserPluginManager.executePlugin(SourceFile:565)
at com.dynatrace.diagnostics.sdk.MonitorPluginExecutor.execute(SourceFile:51)
at com.dynatrace.diagnostics.sdk.MonitorPluginExecutor.execute(SourceFile:26)
at com.dynatrace.diagnostics.scheduling.impl.ServerJobCenterRegistry.a(SourceFile:189)
at com.dynatrace.diagnostics.scheduling.impl.ServerJobCenterRegistry.a(SourceFile:412)
at com.dynatrace.diagnostics.scheduling.impl.ServerJobCenterRegistry.execute(SourceFile:336)
at com.dynatrace.diagnostics.scheduling.impl.SchedulerJob.a(SourceFile:101)
at com.dynatrace.diagnostics.scheduling.impl.SchedulerJob.work(SourceFile:92)
at com.dynatrace.diagnostics.scheduling.impl.SchedulerJob.executeJobInfo(SourceFile:241)
at com.dynatrace.diagnostics.scheduling.impl.QuartzJob.execute(SourceFile:45)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at com.dynatrace.diagnostics.scheduling.impl.QuartzThreadPool$WorkerThread.run(SourceFile:788)
I have shared the LogFileMonitor directory and verified that I can access the TestFile.txt from the collector machine; ie. The Network path is correct.
What am I missing to resolve the Access Denied error?
Please let me know.
Thanks,
Harshal.
Answer by Wolfgang G. ·
It's essential to run the collector executing the plugin with a user account that has access to that particular remote path. Could you check that?
That did it!!!
Thanks for the immediate reply Wolfgang. Really appreciate it.
Regards,
Harshal.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET