Skip to content

Commit b527eb1

Browse files
authored
feat: Update config-data-nodes for query logging
This PR updates the data config documentation to include information about `query-log-path`.
1 parent 471e9f2 commit b527eb1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

content/enterprise_influxdb/v1/administration/configure/config-data-nodes.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,29 @@ Very useful for troubleshooting, but will log any sensitive data contained withi
303303

304304
Environment variable: `INFLUXDB_DATA_QUERY_LOG_ENABLED`
305305

306+
#### query-log-path
307+
308+
Default is `""`.
309+
310+
Whether queries should be logged to a file at a given path.
311+
If the value is set to `""` (default) queries are not logged to a file.
312+
Please make sure you are using the absolute path when configuring this.
313+
We support `SIGHUP` based log rotation. The following is an example of a `logrotate` configuration:
314+
315+
```
316+
/var/log/influxdb/queries.log {
317+
rotate 5
318+
daily
319+
compress
320+
missingok
321+
notifempty
322+
create 644 root root
323+
postrotate
324+
/bin/kill -HUP `pgrep -x influxd`
325+
endscript
326+
}
327+
```
328+
306329
#### wal-fsync-delay
307330

308331
Default is `"0s"`.

0 commit comments

Comments
 (0)