# Can I add log files to be monitored even though it is not related to any processes detected?

**URL:** <https://community.dynatrace.com/t/can-i-add-log-files-to-be-monitored-even-though-it-is-not-related-to-any-processes-detected/19959>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [March 12, 2019, 3:02pm UTC](https://community.dynatrace.com/t/can-i-add-log-files-to-be-monitored-even-though-it-is-not-related-to-any-processes-detected/19959 "2019-03-12T15:02:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [March 12, 2019, 3:02pm UTC](https://community.dynatrace.com/t/can-i-add-log-files-to-be-monitored-even-though-it-is-not-related-to-any-processes-detected/19959/1 "2019-03-12T15:02:45Z")

</div>

Right now, seems like even if I want to add log files to be monitored, it would have a logs written by some processes? (which is why I can only configure log in ‘process’ page, not ‘host’ page?)

Say, for example, if I want monitor a log which the is /var/log/abcd.txt. How can I achieve this?

 ![19974-log.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/b/6bdcae5faa3939e02e35ebbb7561602e1f948091.png)

Best Regards,

Wai Keat

---

<div class="post-metadata">

**Author:** ![david\_n](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_n/32/12978_2.png) [@david\_n](https://community.dynatrace.com/u/david_n)\
**Post date:** [March 12, 2019, 5:00pm UTC](https://community.dynatrace.com/t/can-i-add-log-files-to-be-monitored-even-though-it-is-not-related-to-any-processes-detected/19959/2 "2019-03-12T17:00:23Z")

</div>

Hello Wai,

You can define a custom log event on a log file on a host in the Log Analytics settings. This would allow Dynatrace to alert on certain log patterns that you define that it may find in that log file.

 ![19975-2019-03-12-11-57-17.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/89fdee6724a384343645ce3f904c5f15235f54df.png)

Thanks,

David Nicholls

---

<div class="post-metadata">

**Author:** ![antonio\_villarr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_villarr/32/6204_2.png) [@antonio\_villarr](https://community.dynatrace.com/u/antonio_villarr)\
**Post date:** [March 21, 2019, 12:28pm UTC](https://community.dynatrace.com/t/can-i-add-log-files-to-be-monitored-even-though-it-is-not-related-to-any-processes-detected/19959/3 "2019-03-21T12:28:44Z")

</div>

Hi,

Sorry, but you did not answer the question: can we add a not detected log file / any text file to be monitored by dynatrace?

Kind regards,

Antonio V.

---

<div class="post-metadata">

**Author:** ![david\_n](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_n/32/12978_2.png) [@david\_n](https://community.dynatrace.com/u/david_n)\
**Post date:** [March 21, 2019, 3:50pm UTC](https://community.dynatrace.com/t/can-i-add-log-files-to-be-monitored-even-though-it-is-not-related-to-any-processes-detected/19959/4 "2019-03-21T15:50:32Z")

</div>

Woops, you are right. Here is information on how to manually specficy a log file to be captured.

> **[Log Analytics](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring)**
>
> Log Management and Analytics provides a unified approach to controlling and studying your log data in Dynatrace.

Thanks,

David Nicholls
