toni-moreno / syncflux

SyncFlux is an Open Source InfluxDB Data synchronization and replication tool for migration purposes or HA clusters
MIT License
154 stars 34 forks source link

http_access.log always print /api/health request #35

Open like-inspur opened 4 years ago

like-inspur commented 4 years ago

Although I set loglevel to warn, I found it doesn't affect on http_access.log, and it always print like below: [Macaron] 2020-04-30 02:43:50: Started GET /api/health for 10.110.19.67 [Macaron] 2020-04-30 02:43:50: Completed GET /api/health 200 OK in 533.368µs [Macaron] 2020-04-30 02:45:50: Started GET /api/health for 10.110.19.67 [Macaron] 2020-04-30 02:45:50: Completed GET /api/health 200 OK in 295.624µs

like-inspur commented 4 years ago

@toni-moreno http_access.log still exist like below even though set log output to console. I this it is same as influxdb-srelay(https://github.com/toni-moreno/influxdb-srelay/issues/26), but stored in container log file

root@mgt01:~# kubectl exec -it influxdb-1 -n monitoring -c syncflux sh
/opt/syncflux # cat log/http_access.log 
[Macaron] 2020-05-12 01:54:38: Started GET /api/health for 10.110.19.68
[Macaron] 2020-05-12 01:54:38: Completed GET /api/health 200 OK in 799.938µs
[Macaron] 2020-05-12 01:56:38: Started GET /api/health for 10.110.19.68
[Macaron] 2020-05-12 01:56:38: Completed GET /api/health 200 OK in 485.774µs
[Macaron] 2020-05-12 01:58:38: Started GET /api/health for 10.110.19.68
[Macaron] 2020-05-12 01:58:38: Completed GET /api/health 200 OK in 341.679µs
[Macaron] 2020-05-12 02:00:38: Started GET /api/health for 10.110.19.68
[Macaron] 2020-05-12 02:00:38: Completed GET /api/health 200 OK in 333.868µs
[Macaron] 2020-05-12 02:02:38: Started GET /api/health for 10.110.19.68
[Macaron] 2020-05-12 02:02:38: Completed GET /api/health 200 OK in 281.932µs