Skip to content

Commit 8da7e7e

Browse files
authored
Merge pull request #5856 from influxdata/db/459/query-logging-docs
feat: Update config-data-nodes for query logging
2 parents 471e9f2 + b7dee87 commit 8da7e7e

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+
An absolute path to the query log file.
309+
The default is `""` (queries aren't logged to a file).
310+
311+
Query logging supports SIGHUP-based log rotation.
312+
313+
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)