# Need a way to use DQL for searching extension logs

**URL:** <https://community.dynatrace.com/t/need-a-way-to-use-dql-for-searching-extension-logs/51581>\
**Category:** DQL\
**Tags:** ssl, dql, extensions, logs\
**Created:** [May 11, 2025, 12:47pm UTC](https://community.dynatrace.com/t/need-a-way-to-use-dql-for-searching-extension-logs/51581 "2025-05-11T12:47:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [May 11, 2025, 12:47pm UTC](https://community.dynatrace.com/t/need-a-way-to-use-dql-for-searching-extension-logs/51581/1 "2025-05-11T12:47:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RohitBisht](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rohitbisht/32/38577_2.png) [@RohitBisht](https://community.dynatrace.com/u/RohitBisht)\
**Post date:** [May 12, 2025, 12:51am UTC](https://community.dynatrace.com/t/need-a-way-to-use-dql-for-searching-extension-logs/51581/2 "2025-05-12T00:51:45Z")

</div>

You can install OneAgent on the activegate host and then enable log monitoring for the file.

---

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [May 12, 2025, 11:05am UTC](https://community.dynatrace.com/t/need-a-way-to-use-dql-for-searching-extension-logs/51581/3 "2025-05-12T11:05:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RohitBisht](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rohitbisht/32/38577_2.png) [@RohitBisht](https://community.dynatrace.com/u/RohitBisht)\
**Post date:** [May 13, 2025, 1:06am UTC](https://community.dynatrace.com/t/need-a-way-to-use-dql-for-searching-extension-logs/51581/4 "2025-05-13T01:06:41Z")

</div>

Its a 2 step process as stated here: [Custom log source (Logs Classic) — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/log-monitoring-custom-source)

The entire process consists of two parts:

1. Source definition (custom log source configuration), which is described on this page.

2. Log acquisition (adding logs to storage), which is described on&nbsp;[Log ingest rules](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/acquire-log-data/log-storage).
