dockerize
dockerize copied to clipboard
Add ability to tail log files using a glob pattern
I'd like the ability to tail a bunch of logs using a glob pattern. Dockerize should monitor the filesystem in some way to find new files to tail based on the glob pattern.
@jwilder If you are ok with this functionality then I'd be happy to tackle it.
I'd love to see this.
There are a lot of ways to implement this with shell, e.g. (assuming log file names doesn't contain spaces):
$ ls *.log
1.log 2.log 3.log
$ echo dockerize $(ls -1 *.log | sed 'i-stdout')
dockerize -stdout 1.log -stdout 2.log -stdout 3.log
$ echo dockerize $(ls *.log | xargs -n 1 echo -stdout)
dockerize -stdout 1.log -stdout 2.log -stdout 3.log
In any case, if this issue is still actual and proposed solution won't work for you please consider opening issue in fork https://github.com/powerman/dockerize