# Need help in adjust log dashboard records

**URL:** <https://community.dynatrace.com/t/need-help-in-adjust-log-dashboard-records/50954>\
**Category:** DQL\
**Tags:** dql, logs\
**Created:** [March 28, 2025, 5:38pm UTC](https://community.dynatrace.com/t/need-help-in-adjust-log-dashboard-records/50954 "2025-03-28T17:38:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohangurrampati](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Mohangurrampati](https://community.dynatrace.com/u/Mohangurrampati)\
**Post date:** [March 28, 2025, 5:38pm UTC](https://community.dynatrace.com/t/need-help-in-adjust-log-dashboard-records/50954/1 "2025-03-28T17:38:57Z")

</div>

Hi Team,

I am trying to adjust logs records in dashboard. we have exist logs records which have deviceid and storenumber and servicename and others. I am setting up new logs have only storenumber and deviceid unique one record with no duplicates of same deviceid and status column as well. while doing i got required unique deviceid record in logs but i need to deviceid records where deviceid record is empty also. Please help me to modify below query and help me to get empty deviceid records as well.

Query :

fetch logs  
| filter matchesValue(service.name, “SBNA”)  
| filter matchesValue(status, “ERROR”)  
| fields storenumber, deviceid, status, service.name  
| summarize storenumber = first(storenumber), deviceid = first(deviceid), status = first(status), service\_name = first(service.name)  
| sort status desc

 ![pos2.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/f/cffbfb3c0b1bf20a72c99c8e967f2ac1bbbc536f.png)  
 ![pos1.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8ba1830eeb9f89027d1671dad6e3a3af64e61811.png)

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [April 1, 2025, 10:52pm UTC](https://community.dynatrace.com/t/need-help-in-adjust-log-dashboard-records/50954/2 "2025-04-01T22:52:16Z")

</div>

Try this:

```javascript
fetch logs
| filter matchesValue(service.name, "SBNA")
| filter matchesValue(status, "ERROR")
| summarize status = first(status), by: { storenumber, deviceid, service.name }
| fields storenumber, deviceid, status, service.name
| sort status desc

```
