# How to get log attributes in the Davis Anamoly detection Event Proeperties

**URL:** <https://community.dynatrace.com/t/how-to-get-log-attributes-in-the-davis-anamoly-detection-event-proeperties/48642>\
**Category:** DQL\
**Tags:** davis, logs\
**Created:** [October 30, 2024, 5:41pm UTC](https://community.dynatrace.com/t/how-to-get-log-attributes-in-the-davis-anamoly-detection-event-proeperties/48642 "2024-10-30T17:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![subashsagi41](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@subashsagi41](https://community.dynatrace.com/u/subashsagi41)\
**Post date:** [October 30, 2024, 5:41pm UTC](https://community.dynatrace.com/t/how-to-get-log-attributes-in-the-davis-anamoly-detection-event-proeperties/48642/1 "2024-10-30T17:41:09Z")

</div>

Hi,

I was able to get the dimensions from the metrics but not directly from the logs. Here is my query

```markup
fetch logs
| filter contains(azure.resource.name, "MTH") and contains(content, "QRY_STATUS") and contains(content, "ETL-ALERT") //and loglevel == "ERROR" 
| parse content, "JSON:json"
| fieldsFlatten json
| fields timestamp, azure.resource.group, APPLICATION_NAME = json.Properties[APPLICATION_NAME], QRY_STATUS = json.Properties[QRY_STATUS], PIPELINESTEPCODE = json.Properties[PIPELINESTEPCODE], 
         TENANT_ID = json.Properties[TENANT_ID], LEVELNUMBER = json.Properties[LEVELNUMBER], QRY_ERROR = json.Properties[QRY_ERROR]
| filter QRY_STATUS == "FAILED"
| makeTimeseries count(), interval: 1m, time: timestamp

```

I want to get the all the attributes in the fields in the event properties, but ,I’m not able to get those.

Any help here is highly appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [October 31, 2024, 1:33am UTC](https://community.dynatrace.com/t/how-to-get-log-attributes-in-the-davis-anamoly-detection-event-proeperties/48642/2 "2024-10-31T01:33:34Z")

</div>

Hey&nbsp;[@subashsagi41](https://community.dynatrace.com/user/66475)

It looks like because by the end of the query there are no attributes/dimensions. When using the maketimeseries command without any splits nothing from the logs is retained and the system cannot extract information where there is none. If you run this query in a notebook and visualize it with “Record List” you’ll be able to see what’s retained.

Also, if you’re looking to create an alert based off the logs I’d recommend turning them into a metric using processing rules on ingest. This will allow for cheaper visualization and querying if you don’t anticipate it changing much over time.
