# Feature request: Add CSV export to Query Log

**URL:** <https://discourse.pi-hole.net/t/feature-request-add-csv-export-to-query-log/87768>\
**Category:** Feature Requests\
**Created:** [September 27, 2026, 4:39pm UTC](https://discourse.pi-hole.net/t/feature-request-add-csv-export-to-query-log/87768 "2026-09-27T16:39:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinainos](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/8e7dd6/32.png) [@sinainos](https://discourse.pi-hole.net/u/sinainos)\
**Post date:** [September 27, 2026, 4:39pm UTC](https://discourse.pi-hole.net/t/feature-request-add-csv-export-to-query-log/87768/1 "2026-09-27T16:39:41Z")

</div>

It would be very useful to have a simple **“Export CSV”** button in the Query Log.

The current Query Log is useful for investigating DNS activity, but there is no convenient way to export the displayed results for further analysis.

Ideally, the export would:

- Export the currently displayed/filtered query-log results
- Respect the selected date/time range and filters
- Include fields such as timestamp, client, domain, query type, status, and reply
- Download directly as a `.csv` file
- Use the same underlying data/API as the Query Log rather than requiring users to access the filesystem

**Example use case:** I want to analyze my DNS activity in Excel/Google Sheets or feed it into another analysis tool. Currently this requires manually accessing Pi-hole's database/log files or using the API.

This could be as simple as an **“Export CSV”** button next to the existing Query Log controls.

---

<div class="post-metadata">

**Author:** ![awsles](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/awsles/32/56476_2.png) [@awsles](https://discourse.pi-hole.net/u/awsles)\
**Post date:** [October 12, 2026, 2:08pm UTC](https://discourse.pi-hole.net/t/feature-request-add-csv-export-to-query-log/87768/2 "2026-10-12T14:08:45Z")

</div>

It would be great if the log included the DNS query type AND the resolved value.
