# To verify which bucket the records are in.

**URL:** <https://community.dynatrace.com/t/to-verify-which-bucket-the-records-are-in/44929>\
**Category:** DQL\
**Tags:** dql, logs\
**Created:** [April 1, 2024, 5:22pm UTC](https://community.dynatrace.com/t/to-verify-which-bucket-the-records-are-in/44929 "2024-04-01T17:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ellery](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@Ellery](https://community.dynatrace.com/u/Ellery)\
**Post date:** [April 1, 2024, 5:22pm UTC](https://community.dynatrace.com/t/to-verify-which-bucket-the-records-are-in/44929/1 "2024-04-01T17:22:10Z")

</div>

Hello, I have the following issue: how can I verify which logs or records are being stored in the buckets and ensure that they are being stored in the correct bucket?

 ![Ellery_0-1711992076684.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/1/918ca3842c0cd4a99525d2b6abd138441bc99250.png)

Another question, and to ingest bizevents into another bucket, can I use the same bucket as for the logs, or is it recommended to create a new bucket with a specific rule for this?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [April 1, 2024, 6:44pm UTC](https://community.dynatrace.com/t/to-verify-which-bucket-the-records-are-in/44929/2 "2024-04-01T18:44:11Z")

</div>

There is _ **dt.system.bucket** _ field for each data record where you can see in which bucket record is. You can just add this field to view it in result of the query

```markup
| fieldsAdd dt.system.bucket

```

or _ **summarize** _ by it to see record counts, like in my example (filtering criteria copied from attached processing rule)

```markup
fetch logs
| filter matchesPhrase(dt.host_group.id,"prod-salud") or matchesPhrase(dt.kubernetes.cluster.name,"prod-salud")
| summarize count(), by:{dt.system.bucket}

```

When you define bucket you specify for which type data it is. So log buckets are for logs only, bizevents buckets are for bizevent only etc. However you can directs log lines from different processing rules to same bucket.&nbsp;You can take a look at “Storage Management” app for clear guidance.

Kris
