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

[Feature request] [cli] Add simple live querylog #1428

Open
JoseGalRe opened this issue Feb 24, 2020 · 6 comments
Open

[Feature request] [cli] Add simple live querylog #1428

JoseGalRe opened this issue Feb 24, 2020 · 6 comments

Comments

@JoseGalRe
Copy link

JoseGalRe commented Feb 24, 2020

It would be great to have this feature via cli,
this would make debugging easier to allow or block domains.

I currently use 'tail' and 'jq' to have this,
using the 'querylog.json' file

tail -f ./querylog.json | jq -r '[(.T[0:19]|tostring|gsub("T"; " ")), .IP, .Result.IsFiltered, .QH]|@tsv'

But it would be great to have this natively,
maybe with:

'./AdguardHome --live_querylog'

And if possible add option with colors to make debugging even more easier
maybe with:

'./AdguardHome --live_querylog --color' 

This is the idea, if it is approved, the final result does not necessarily have to be equal to that obtained with 'tail' and 'jq'

@JoseGalRe
Copy link
Author

[update]

jq and tail wrapper need edit yaml file with:
querylog_size_memory: 0

added question type (QT) and client connection protocol (CP) to wrapper
tail -f ./querylog.json | jq -r '[(.T[0:19]|tostring|gsub("T"; " ")), .IP, .CP, .Result.IsFiltered, .QT, .QH]|@tsv'

@saifalbadi
Copy link

and still, 3 years and they did NOT include this feature as a main feature, good job devs :D

@ppfeufer
Copy link

Well, if you think you can do a better job, feel free to contribute and submit a PR for this feature.
If not, be happy and thankful they provide such a great tool for free to you.

@saifalbadi
Copy link

Well, if you think you can do a better job, feel free to contribute and submit a PR for this feature. If not, be happy and thankful they provide such a great tool for free to you.

if i can do contribute, i will not comment like that, i will do my best to add that feature like Pi-Hole
and i am very thankful for the project, i did not comment it in a bad way at least from my side.. or my mind

@D13410N3
Copy link
Member

Hello. And what's the purpose of this? What problem are you solving?

@lmaced0
Copy link

lmaced0 commented Dec 27, 2023

+1 for this feature. Live DNS resolution is very useful for troubleshooting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants