# Log monitoring and create custom metric

**URL:** <https://community.dynatrace.com/t/log-monitoring-and-create-custom-metric/31652>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [May 31, 2021, 2:03pm UTC](https://community.dynatrace.com/t/log-monitoring-and-create-custom-metric/31652 "2021-05-31T14:03:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VERA](https://avatars.discourse-cdn.com/v4/letter/v/b3f665/32.png) [@VERA](https://community.dynatrace.com/u/VERA)\
**Post date:** [May 31, 2021, 2:03pm UTC](https://community.dynatrace.com/t/log-monitoring-and-create-custom-metric/31652/1 "2021-05-31T14:03:42Z")

</div>

Hello I can see logs of my apache process, well I can’t create a custom metric.&nbsp;Why?, when I installed my agents, I enable the log monitoring:

![VERA_0-1622469369036.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9bcb1c5eaac22b98e0eefbbfc5fcf9bd6ee2c18f.png)

But when I try create a custom metric appear:

 ![VERA_1-1622469731175.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1770f4ab479d10272688b45ee8cb382887a99010.png)

Do I need something more?&nbsp;Thanks!

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [May 31, 2021, 2:19pm UTC](https://community.dynatrace.com/t/log-monitoring-and-create-custom-metric/31652/2 "2021-05-31T14:19:44Z")

</div>

Hello&nbsp;[@VERA](https://community.dynatrace.com/user/42632)

A custom metric can be created only for monitored logs (log files that are stored on the Dynatrace server). If you use Log Monitoring as an ad hoc troubleshooting tool for a specific process or host, you’ll likely view host-specific logs that haven’t been designated for monitoring (that is, stored). As a result, the custom metric feature isn’t available for such logs.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![VERA](https://avatars.discourse-cdn.com/v4/letter/v/b3f665/32.png) [@VERA](https://community.dynatrace.com/u/VERA)\
**Post date:** [June 2, 2021, 6:48am UTC](https://community.dynatrace.com/t/log-monitoring-and-create-custom-metric/31652/3 "2021-06-02T06:48:13Z")

</div>

Ok, I undesntand, but How do I save the log files in my Dynatrace Cluster Servers?&nbsp; Do I need a NFS?

I think no

I see in the log section the option for start monitoring the logs I need, but after I click this option I couldn’t create the metric.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [June 2, 2021, 8:09am UTC](https://community.dynatrace.com/t/log-monitoring-and-create-custom-metric/31652/4 "2021-06-02T08:09:45Z")

</div>

Hello&nbsp;[@VERA](https://community.dynatrace.com/user/42632)

Yes. You need an NFS disk.

Please have a look at the below link for more insight:

> **[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.

Regards,

Babar
