dockerize icon indicating copy to clipboard operation
dockerize copied to clipboard

Add ability to tail log files using a glob pattern

Open ianneub opened this issue 10 years ago • 1 comments

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.

ianneub avatar May 06 '15 14:05 ianneub

I'd love to see this.

taybin avatar Jan 25 '16 14:01 taybin

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

powerman avatar Dec 01 '18 00:12 powerman