AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Customize the path of querylog.json file

Open mjyhj opened this issue 3 years ago • 4 comments

Prerequisites

  • [X] I have checked the Wiki and Discussions and found no answer

  • [X] I have searched other issues and found no duplicates

  • [X] I want to request a feature or enhancement and not ask a question

Description

What problem are you trying to solve?

Write in /tmp of the host. Extend disk life

Proposed solution

Customize the path of querylog file

-e querylog_path=/tmp -v /tmp/log/adg:/tmp

Alternatives considered

Additional information

docker

mjyhj avatar Oct 17 '22 16:10 mjyhj

If you want to store query logs only in system memory, you can set querylog_file_enabled: false in your AdGuardHome.json file.

agneevX avatar Oct 19 '22 07:10 agneevX

If you want to store query logs only in system memory, you can set querylog_file_enabled: false in your AdGuardHome.json file.

I tried, but it didn't work

After restart, it will be restored querylog_file_enabled: true

mjyhj avatar Oct 19 '22 14:10 mjyhj

Did you stop AdGuard Home before you edited and saved the file?

agneevX avatar Oct 20 '22 08:10 agneevX

I didn't stop AdGuard Home before editing and saving files

thank you! It's work now.

mjyhj avatar Oct 20 '22 13:10 mjyhj

Hello, where should I put querylog_file_enabled: false in the config file?

Skylarzz avatar Sep 22 '23 15:09 Skylarzz