fusio icon indicating copy to clipboard operation
fusio copied to clipboard

Disable logging of specific endpoints

Open dataforce-troy opened this issue 4 years ago • 1 comments

Hi @chriskapp , Is there a way to disable logging for specific routes. We have AWS Load balancer hitting the server for health checks very regularly and it is filling up logs and analytics with spam. Is there a way to disable the logging on a route?

Thanks

dataforce-troy avatar Nov 15 '21 06:11 dataforce-troy

Hi, so currently we have no explicit feature to disable logging for a route, since the dashboard etc. depends on the logging but we have a command s. php ./bin/fusio system:log_rotate which moves different entries to an archive table which then makes the system faster. In general logging is also only a middleware s. src/Controller/SchemaApiController.php:131 so we could easily disable it based on a config flag but so far the log_rotate command has worked for those use cases, since otherwise all dashboard an analytics pages would have no data.

chriskapp avatar Nov 15 '21 17:11 chriskapp