Would it be possible to scan docker log files, eg. with default json driver:
/var/lib/docker/containers/{container_id}/{container_id}-json.log
The problem is that container_id is a dynamic thing, and changes with each container restart. Is there an example about how to solve dynamic log names?
Other way around might be to somehow filter each line. Json line could include a key which defined which container it belongs to.
Thanks!
Would it be possible to scan docker log files, eg. with default json driver:
/var/lib/docker/containers/{container_id}/{container_id}-json.log
The problem is that container_id is a dynamic thing, and changes with each container restart. Is there an example about how to solve dynamic log names?
Other way around might be to somehow filter each line. Json line could include a key which defined which container it belongs to.
Thanks!