A simple command line interface to grep live text stream of docker logs
N.B. Installation cloning the repository should be done for development pourposes only.
$ wget http://andreatedeschi.uno/grepdl/grepdl_1.0-1_all.deb
$ sudo dpkg --install grepdl_1.0-1_all.deb
$ sudo python3 -m pip install grepdl
$ wget http://andreatedeschi.uno/grepdl/grepdl-1.0-1.noarch.rpm
$ sudo rpm --install grepdl-1.0-1.noarch.rpm
$ git clone https://git.metodogroup.it/andrea.tedeschi/grepdl.git
$ cd grepdl
$ python3 -m pip install .
N.B. If you have not python3-pip installed, last command is:
$ python3 setup.py install
grepdl [options] <container> <search>
||=============================================||
||Examples: ||
||grepdl container '^thi.+ mine$' --regex ||
||grepdl container 'hello world' --since 10m ||
||=============================================||
A tool to scan recursively a directory and grep in the content of its files
positional arguments:
container The container id or name
search The text or the pattern to look for in files content
optional arguments:
-h, --help show this help message and exit
-r, --regex Search is regular expression
-i, --case-insensitive
The script will acts case insensitive
--since <timestamp> Only logs since timestamps (YYYY-mm-ddThh:mm:ssZ) or relative (42m, 10h, etc)
--until <timestamp> Only logs until timestamps (YYYY-mm-ddThh:mm:ssZ) or relative (42m, 10h, etc)