# Create one log metric from logs and events

**URL:** <https://community.dynatrace.com/t/create-one-log-metric-from-logs-and-events/43710>\
**Category:** Logs\
**Tags:** logs\
**Created:** [January 18, 2024, 11:09pm UTC](https://community.dynatrace.com/t/create-one-log-metric-from-logs-and-events/43710 "2024-01-18T23:09:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DAVID\_MTZ](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DAVID\_MTZ](https://community.dynatrace.com/u/DAVID_MTZ)\
**Post date:** [January 18, 2024, 11:09pm UTC](https://community.dynatrace.com/t/create-one-log-metric-from-logs-and-events/43710/1 "2024-01-18T23:09:46Z")

</div>

I need to create one log metric from fields of the table that generate the log that was ingested by API

 ![DAVID_MTZ_0-1705618835823.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/ea218da7628ab1857b888b432178ed652e1ef1fb.png)

I created the custom atribute, and i created the metric extraction,

 ![DAVID_MTZ_1-1705618999076.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/7/87758447842a4678a2e6b8a73389204e73ecc0ae.png)

 ![DAVID_MTZ_3-1705619085220.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/f/bfaa3485dbe58e9985c6346eaf2d163402ecfd52.png)

but i can’t see the metric from Data explorer or from metrics

 ![DAVID_MTZ_4-1705619155680.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/4/04e206cfc434810dd61eb4a905be5d34ca55ef77.png)

 ![DAVID_MTZ_5-1705619232092.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/f/9f9b175783320aaaa6cf4c0bb46333962cf4f9e8.png)

Could you help me to know if i need another process or how can i see or create the metric please?

Best regard.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [January 19, 2024, 6:18am UTC](https://community.dynatrace.com/t/create-one-log-metric-from-logs-and-events/43710/2 "2024-01-19T06:18:14Z")

</div>

Hi&nbsp;[@DAVID\_MTZ](https://community.dynatrace.com/user/70237)

Could you please share the custom attribute configuration too?

I usually count log patterns: first creating a processing rule → parse out the requested pattern, creating a custom attribute from it and create a log metric with occurence of log records and I use the custom attribute as a dimension.

I hope it helps.

Best regards,

Mizső

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![DAVID\_MTZ](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DAVID\_MTZ](https://community.dynatrace.com/u/DAVID_MTZ)\
**Post date:** [January 19, 2024, 4:01pm UTC](https://community.dynatrace.com/t/create-one-log-metric-from-logs-and-events/43710/3 "2024-01-19T16:01:30Z")

</div>

Hi&nbsp;Mizső

Thanks for the help and the aswer, i send you the configuration about the custom attributes:

 ![DAVID_MTZ_0-1705679857337.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/8/b8d01bbe2573f51c536d2dc1957b92c1eb1fc18c.png)

 ![DAVID_MTZ_2-1705679922097.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/c/bced6f04f4fedbb8ef51869edec68d52e7c19a14.png)

The configuration is the same for all the custom attributes

I will do the procedure that you comment us :

count log patterns: first creating a processing rule → parse out the requested pattern, creating a custom attribute from it and create a log metric with occurence of log records and I use the custom attribute as a dimension.
