11 May 2025
01:47 PM
- last edited on
12 May 2025
07:46 AM
by
MaciejNeumann
Hello,
I need help with searching logs from the SSL Certificate Monitor extension. I noticed that if the monitored site is down or if there is an error reading the certificate, the certificate just disappears from the discovered certificates. I found some logs in:
./remotepluginmodule/log/extensions/datasources/com.dynatrace.custom.python-certificate-monitor/python3.log
Is there a way to read these logs through DQL and set up an alert if such issues occur?
Thanks!
Regards, Deni
12 May 2025 01:51 AM
You can install OneAgent on the activegate host and then enable log monitoring for the file.
12 May 2025 12:05 PM
How can I enable this log monitoring?
I tried to add a custom log configuration in settings: Linux path: /var/lib/dynatrace/remotepluginmodule/log/extensions/datasources/com.dynatrace.custom.python-certificate-monitor/python3.log
but
fetch logs
| filter matchesValue(content, "8443")
| sort timestamp desc
still don't return anything. The digit is a port number which exists in the file:
sudo grep 8443 . -R | grep 2025-05-12
./remotepluginmodule/log/extensions/datasources/com.dynatrace.custom.python-certificate-monitor/python3.log:[3dacb2c3-3e7b-3354-91b4-6cf6d488d5d6][-4727436546405702787][37757][out]2025-05-12 13:21:40,036 [DEBUG] (ThreadPoolExecutor-0_0): Check bindings: [ProcessPortBinding(address='78.83.113.249', port=8443, pid=None)]
..... and a lot more
/var/lib/dynatrace$ pwd
/var/lib/dynatrace
13 May 2025 02:06 AM
Its a 2 step process as stated here: https://docs.dynatrace.com/docs/shortlink/log-monitoring-custom-source
The entire process consists of two parts: