drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.63k stars 1.12k forks source link

Filtering AccessLogger path to log #2162

Open TheEnigmist opened 2 months ago

TheEnigmist commented 2 months ago

I've a Dragon server with the AccessLogger plugin enabled, and I'm using Kuma Uptime to ping that server to check its status. My access log file is full of rows with those pings. Is there a way to add a path list to filter out these pings so they don't get logged?

an-tao commented 2 months ago

Sorry you can't do that currently, you could add some options to the AccessLogger's configuration to achieve this, please refer to the ssl_redirect_exempt option of the SecureSSLRedirector plugin.