Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
like-inspur opened this issue Apr 30, 2020 · 1 comment
Open

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

like-inspur opened this issue Apr 30, 2020 · 1 comment

Comments

@like-inspur
Copy link

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
Copy link
Author

like-inspur commented May 12, 2020

@toni-moreno http_access.log still exist like below even though set log output to console. I this it is same as influxdb-srelay(toni-moreno/influxdb-srelay#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant