06 Nov 2017 11:19 AM
Hi,
I have some scripts, such as a backup script, which get executed via cron, and output errors to a log file. There is no process group for these logs. is there a way that I can Dynatrace to monitor these logs. I am using DTSAAS.
Thanks
Mike
Solved! Go to Solution.
06 Nov 2017 01:56 PM
What kind of cron jobs are this? If you are running sh/bash scripts you might be out of luck. If you run an java app via cron it would be possible.
06 Nov 2017 02:06 PM
Hi Patrick,
Yes bash backup scripts, and hive scripts
Mike
06 Nov 2017 02:41 PM
I don't think there is a way (yet) to add custom logs for gathering by the OneAgent if there is no Process Group for the Process.
06 Nov 2017 06:49 PM
A nifty way to do this, is to use Logstash, with the Log files as Inputs with no Outputs configured, and add the log files to the Logatash process
07 Nov 2017 11:17 AM
You can manually add this to any process you want. You can also configure agents to track processes that are not monitored by default.
07 Nov 2017 12:26 PM
Thanks Pawel. I thought the process group would need to update the log, for changes to be detected. I will try and manually add the log under the xinetd process.
08 Nov 2017 01:21 PM
That's true for automatic log discovery. Manual log mapping is workaround for this.