Dynamic Logging DB

I have re-pointed my logging database to log to AWS, all works fine however, when my internet is down and I bounce the server the server doesn’t boot properly because it cannot reach the AWS server. Is there a conidition I can put in the configuration YMAL that does a ping test to AWS and then if successful is start to log to AWS and if the ping fails it uses a local DB?

Am I mad? :slight_smile: