Make the Fluentd/Elasticsearch logging robust to log rotation