Distributed logs REST API return an error relation does not exists

The error returned is:

ERROR:  relation "log_patroni" does not exist

It seems this is because Fluentd container can create database tables before template1 is updated by init scrpt on a distributed logs cluster.

Edited by Matteo Melli