gltail icon indicating copy to clipboard operation
gltail copied to clipboard

Local Reads

Open mubix opened this issue 14 years ago • 3 comments

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?

mubix avatar Apr 25 '12 01:04 mubix

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.

pyro2927 avatar Apr 25 '12 04:04 pyro2927

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

mubix avatar Apr 25 '12 13:04 mubix

In config, setup should look something like

tshark:
    source: tshark
    parser: tshark
    color: 0.2, 0.2, 1.0, 1.0

pyro2927 avatar Apr 25 '12 15:04 pyro2927