Ability to download logs #2863

Closed
opened 2026-03-04 02:31:55 -05:00 by deekerman · 5 comments
Owner

Originally created by @PMunch on GitHub (Jun 24, 2021).

Problem Description

I find myself wondering about the DNS traffic on my network. And I would really like to download the full log of DNS queries/replies in a format that I can process. The log on the website is okay, but I'm not really able to search for specific record types etc. so having the full log in a script-friendly format would be nice.

Proposed Solution

Output the log as JSON, CSV, or a custom format

Alternatives Considered

Scraping the log on the web interface, but that seems a bit counter to the idea of running my own DNS server under HomeAssistant (which is how I'm using AdGuard Home). Unrelated it would also be nice if some AdGuard Home information could be made accessible to other HomeAssistant components. For example the amount of blocked queries, the total amount of queries etc. so that these could be used as part of an interface or to trigger rules.

Originally created by @PMunch on GitHub (Jun 24, 2021). ### Problem Description I find myself wondering about the DNS traffic on my network. And I would really like to download the full log of DNS queries/replies in a format that I can process. The log on the website is okay, but I'm not really able to search for specific record types etc. so having the full log in a script-friendly format would be nice. ### Proposed Solution Output the log as JSON, CSV, or a custom format ### Alternatives Considered Scraping the log on the web interface, but that seems a bit counter to the idea of running my own DNS server under HomeAssistant (which is how I'm using AdGuard Home). Unrelated it would also be nice if some AdGuard Home information could be made accessible to other HomeAssistant components. For example the amount of blocked queries, the total amount of queries etc. so that these could be used as part of an interface or to trigger rules.
deekerman 2026-03-04 02:31:55 -05:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@ainar-g commented on GitHub (Jun 25, 2021):

Hi, thanks for the feature request. This will probably depend on #2290, so it won't land earlier than that one, but once it's done, something like that should be relatively easy.

@ainar-g commented on GitHub (Jun 25, 2021): Hi, thanks for the feature request. This will probably depend on #2290, so it won't land earlier than that one, but once it's done, something like that should be relatively easy.
Author
Owner

@PMunch commented on GitHub (Jun 25, 2021):

How is the log stored now? Could there just be a download raw button with whatever format it is in now?

@PMunch commented on GitHub (Jun 25, 2021): How is the log stored now? Could there just be a download raw button with whatever format it is in now?
Author
Owner

@Aikatsui commented on GitHub (Jun 29, 2021):

How is the log stored now? Could there just be a download raw button with whatever format it is in now?

See `querylog.json' file in the adguardhome folder

@Aikatsui commented on GitHub (Jun 29, 2021): > How is the log stored now? Could there just be a download raw button with whatever format it is in now? See `querylog.json' file in the adguardhome folder
Author
Owner

@Aikatsui commented on GitHub (Jun 29, 2021):

Duplicate of #1176

@Aikatsui commented on GitHub (Jun 29, 2021): Duplicate of #1176
Author
Owner

@ainar-g commented on GitHub (Jun 30, 2021):

I think @Aikatsui is correct, we will merge this one into the original issue. Thanks.

@ainar-g commented on GitHub (Jun 30, 2021): I think @Aikatsui is correct, we will merge this one into the original issue. Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#2863
No description provided.