Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to download logs #3285

Closed
PMunch opened this issue Jun 24, 2021 · 5 comments
Closed

Ability to download logs #3285

PMunch opened this issue Jun 24, 2021 · 5 comments
Labels
duplicate Duplicate or merged issues.

Comments

@PMunch
Copy link

PMunch commented 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.

@ainar-g
Copy link
Contributor

ainar-g commented 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.

@PMunch
Copy link
Author

PMunch commented Jun 25, 2021

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

@Aikatsui
Copy link
Contributor

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
Copy link
Contributor

Duplicate of #1176

@ainar-g
Copy link
Contributor

ainar-g commented Jun 30, 2021

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

@ainar-g ainar-g closed this as completed Jun 30, 2021
@ainar-g ainar-g added duplicate Duplicate or merged issues. and removed P3: Medium feature request labels Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate or merged issues.
Projects
None yet
Development

No branches or pull requests

3 participants