Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable logging of Google App Engine Health Checks: /_ah/vm_health

  • I created a DotNet Core App
  • Deployed it on the Google App Engine (Custom / Flex)
  • I opened the logging tab

I noticed the following entry: _ah/vm_health
It is not there once or twice, it is there very large number of times

Questions:

  1. How can I exclude this one from the logs, I know the system is checking if everything is healthy, and this is good, I just don’t want it logged.
  2. How can I exclude anything from the logs? For example, there is an entry, and it is sending things to the logs, and wanted ignored by the log system.
like image 744
George West Avatar asked Oct 20 '25 02:10

George West


1 Answers

You can't disable logging of the health checks: they're still requests hitting your app and they're logged like any other request.

In the StackDriver Logs Viewer you might be able to use the Advanced Logs Filters to filter out and prevent displaying of the undesired logs. I can't give an actual example, though, as I didn't yet use this facility. Just to be clear - this just prevents displaying the logs when the filter is applied, the logs are not ignored by the logging system.

like image 146
Dan Cornilescu Avatar answered Oct 22 '25 02:10

Dan Cornilescu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!