Local Reads
I love glTail but can't figure out how to make it do a local file tail or tcpdump (tshark?). Can you put an example in the repo on how to do this?
I think that the 'dev' setup in the default config file monitors a local file:
dev:
host: clockingit.com
source: local
files: /var/www/clockingit/logs/production.log
parser: rails
color: 0.2, 0.2, 1.0, 1.0
Update: just tested with a file on my local machine and it does in fact work, you do not need to add
command: tail -f -n0
and in fact it won't work if you do. Just set the files to your local file paths.
Thanks I tested that as well and it works great. What doesn't work is the tshark target since 'command' doesn't work. I worked around this by piping a tshark output into a file in one shell and reading it in the gl_tail shell, but it'd be nice to have it do it like it does with the ssh connections
In config, setup should look something like
tshark:
source: tshark
parser: tshark
color: 0.2, 0.2, 1.0, 1.0