# How to get which keyspaces or tables or queries have non-token aware request

**URL:** <https://forum.scylladb.com/t/how-to-get-which-keyspaces-or-tables-or-queries-have-non-token-aware-request/239>\
**Category:** ScyllaDB\
**Created:** [January 6, 2023, 3:32pm UTC](https://forum.scylladb.com/t/how-to-get-which-keyspaces-or-tables-or-queries-have-non-token-aware-request/239 "2023-01-06T15:32:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brother21913](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@brother21913](https://forum.scylladb.com/u/brother21913)\
**Post date:** [January 6, 2023, 3:32pm UTC](https://forum.scylladb.com/t/how-to-get-which-keyspaces-or-tables-or-queries-have-non-token-aware-request/239/1 "2023-01-06T15:32:34Z")

</div>

Dear All,

In scylladb monitoring stack, we saw some “Non-Token Aware Queries” there. Since there are lots of services in the system (most are token aware), we would like to know if there is any log we could enable to get which keyspaces or tables or queries have non-token aware request?

Tim

---

<div class="post-metadata">

**Author:** ![Botond\_Denes](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/botond_denes/32/163_2.png) [@Botond\_Denes](https://forum.scylladb.com/u/Botond_Denes)\
**Post date:** [January 18, 2023, 10:17am UTC](https://forum.scylladb.com/t/how-to-get-which-keyspaces-or-tables-or-queries-have-non-token-aware-request/239/2 "2023-01-18T10:17:45Z")

</div>

As far as I know there is no such log currently. We only have a generic counter, which is increased every time a query lands on a coordinator which is not itself a replica too.

---

<div class="post-metadata">

**Author:** ![brother21913](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@brother21913](https://forum.scylladb.com/u/brother21913)\
**Post date:** [January 19, 2023, 7:21am UTC](https://forum.scylladb.com/t/how-to-get-which-keyspaces-or-tables-or-queries-have-non-token-aware-request/239/3 "2023-01-19T07:21:32Z")

</div>

Is it possible to add this feature or log for identify service quickly?

Tim

---

<div class="post-metadata">

**Author:** ![Botond\_Denes](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/botond_denes/32/163_2.png) [@Botond\_Denes](https://forum.scylladb.com/u/Botond_Denes)\
**Post date:** [January 19, 2023, 12:55pm UTC](https://forum.scylladb.com/t/how-to-get-which-keyspaces-or-tables-or-queries-have-non-token-aware-request/239/4 "2023-01-19T12:55:48Z")

</div>

It can be added yes, but we have to carefully consider how we present this information: just logging it could flood the logs.

Please open an [issue](https://github.com/scylladb/scylladb/issues/new) with the feature request.

---

<div class="post-metadata">

**Author:** ![brother21913](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@brother21913](https://forum.scylladb.com/u/brother21913)\
**Post date:** [January 20, 2023, 8:05am UTC](https://forum.scylladb.com/t/how-to-get-which-keyspaces-or-tables-or-queries-have-non-token-aware-request/239/5 "2023-01-20T08:05:45Z")

</div>

Open new issue here: [add more info about non-token aware queries · Issue #12577 · scylladb/scylladb · GitHub](https://github.com/scylladb/scylladb/issues/12577)

Since there is also mutation\_data log there (lots of log when set it to trace level), so one possible way is to put this log at debug or trace level, then it will not impact performance by default. User could enable it when they need such info. Other ways are also welcome.
