Our company has a variety of dockerized services and applications. Currently, we use the syslog driver to log them. We are in the process of setting up a fluentd-elasticsearch-kibana stack to centralize our logging, and we’d like to use the fluentd logging driver to feed into that.
However, among the containers we wish to log in this way are the fluentd, elasticsearch, and kibana containers themselves. While we certainly want them to be logged to fluentd, we need to also have a copy of their logs being recorded to disk locally, as a backup; if there is an error in the FEK stack, we need to be able to see its logs without using the FEK stack.
How do we do this? How do we use the fluentd logging driver, while also saving the logs to disk in some way?