# Log all queries against a given database table

**URL:** <https://forum.inductiveautomation.com/t/log-all-queries-against-a-given-database-table/73975>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 19, 2023, 9:30pm UTC](https://forum.inductiveautomation.com/t/log-all-queries-against-a-given-database-table/73975 "2023-05-19T21:30:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reed.hoffmaster](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@reed.hoffmaster](https://forum.inductiveautomation.com/u/reed.hoffmaster)\
**Post date:** [May 19, 2023, 9:30pm UTC](https://forum.inductiveautomation.com/t/log-all-queries-against-a-given-database-table/73975/1 "2023-05-19T21:30:37Z")

</div>

How can I set up logging for all queries run against a given database object/table? Or, how do I see a longer list of queries being run than what is shown on the status page of the gateway? I have a db table that is written to by multiple projects, but I need to know what is being written from which projects or clients.

Thanks.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 19, 2023, 9:34pm UTC](https://forum.inductiveautomation.com/t/log-all-queries-against-a-given-database-table/73975/2 "2023-05-19T21:34:19Z")

</div>

> [@reed.hoffmaster](#):
>
> logging for all queries run against a given database object/table

Use the database's own logging tools. Most have very sophisticated filtering and detail options.
