influxdata / influxdata/influxdb

must set query-log-enabled = true when want to log slow query only.

Open
#8,881 8 comments 7 reactions 0 assignees View on GitHub
1.x proposed wontfix
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Bug report

Influxdb version = 1.3.5

I must set 'query-log-enabled = true' when I want to log slow query.

when I configure the influxdb.conf below:
influxdb.conf
[data]
...
query-log-enabled = false

[coordinator]
query-timeout = "60s"
log-queries-after = "10ms"

The result is that influxdb didn't ouput log about any query.
Then I set query-log-enabled = true, I can see all query log including 'slow query log'.
I think it is not reasonable. May be have any better workaround to log slow query only?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the supplied influxdb.conf settings, especially data.query-log-enabled and coordinator.log-queries-after. Trace how these options affect query logging and verify that the desired result is slow-query logs without logging every query.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.