---
title: "Set query log parameters"
method: POST
path: "/querylog_config"
tags: ["log"]
---

# Set query log parameters

`POST /querylog_config`

## Request

- Base URL: `/control` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/control/querylog_config`
- Auth: HTTP basic

## Request body

- QueryLogConfig: Query log configuration
  - `enabled` boolean: Is query log enabled
  - `interval` 0.25 | 1 | 7 | 30 | 90: Time period for query log rotation.
  - `anonymize_client_ip` boolean: Anonymize clients' IP addresses

## Response `200`

OK.

---

[API](https://skmtc.dev/guardllamanet/apis/adguard-home.md) - [All operations](https://skmtc.dev/guardllamanet/apis/adguard-home/llms.txt) - [OpenAPI document](https://skmtc.dev/guardllamanet/apis/adguard-home/revisions/14ff21aeb363?raw)
