Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Reads #21

Open
mubix opened this issue Apr 25, 2012 · 3 comments
Open

Local Reads #21

mubix opened this issue Apr 25, 2012 · 3 comments

Comments

@mubix
Copy link

mubix commented Apr 25, 2012

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?

@pyro2927
Copy link

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.

@mubix
Copy link
Author

mubix commented Apr 25, 2012

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

pyro2927 added a commit to pyro2927/gltail that referenced this issue Apr 25, 2012
@pyro2927
Copy link

In config, setup should look something like

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

pyro2927 added a commit to pyro2927/gltail that referenced this issue Apr 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants