# How do I know if the ingested logs are going to the correct bucket?

**URL:** <https://community.dynatrace.com/t/how-do-i-know-if-the-ingested-logs-are-going-to-the-correct-bucket/43033>\
**Category:** DQL\
**Tags:** dql, grail, data-privacy-and-product-security, logs\
**Created:** [December 5, 2023, 12:00pm UTC](https://community.dynatrace.com/t/how-do-i-know-if-the-ingested-logs-are-going-to-the-correct-bucket/43033 "2023-12-05T12:00:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WellPP](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@WellPP](https://community.dynatrace.com/u/WellPP)\
**Post date:** [December 5, 2023, 12:00pm UTC](https://community.dynatrace.com/t/how-do-i-know-if-the-ingested-logs-are-going-to-the-correct-bucket/43033/1 "2023-12-05T12:00:03Z")

</div>

We are migrating from a third-party tool to Grail.

We have already started ingesting logs into the dev tenant. The first question: What syntax can I use in Matcer (DQL) so that 100% of the logs go to the created bucket?

Second question, how do I know that Matcher(DQL) is working correctly? How do I know that logs are being pushed to the specific bucket, with the retention period I configured on the bucket? How do I know how many GB are in this bucket?

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [December 6, 2023, 8:48am UTC](https://community.dynatrace.com/t/how-do-i-know-if-the-ingested-logs-are-going-to-the-correct-bucket/43033/2 "2023-12-06T08:48:58Z")

</div>

Hi&nbsp;[@WellPP](https://community.dynatrace.com/user/64547)

If you want all logs to go to another bucket, then you need to use following matcher

```markup
isNotNull(content)

```

If you want to verify in which bucket a record is stored, just add to the query dt.system.bucket

```markup
fetch logs
| fieldsAdd dt.system.bucket

```

To know how much data is being retained in all log buckets, go to accout manageemtn → subscription → overview → then click on details for “Log management an analytcs - retain”.

Best,  
Sini
