English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a Linux server and my log files are gzipped like so:
username.Aug-2006.gz
username.Sep-2006.gz
If I used SSH to log in and I wanted to watch my logs live what command would I use? I have read that "tail -f" would work for uncompressed logs. Is this possible with compressed logs?

2006-09-06 21:08:28 · 5 answers · asked by Bill 2 in Computers & Internet Other - Computers

5 answers

A compressed log is probably just there for archival uses, not actually being used. You could try it on a compressed logfile, and yes the command is "tail -f" (tail, show last 10 lines, -f, follow). Most active log files will not be compressed.

2006-09-06 21:12:33 · answer #1 · answered by Bryan A 5 · 0 0

I did... But I find the same problems in it as Miami Ink. Theres far too much drama. Every tattoo seems to have some horrific long-winded 'meaning' to it. Like you can't just get a tattoo cause you want to. It has to be because your horses grandma died or something.. And I just don't feel like it portrays tattoo shops very realistically, y'know? And Kat Von D annoys me. Shes pretty, but I wish she'd shut up :) I do like tattoos though.

2016-03-17 09:37:55 · answer #2 · answered by Anonymous · 0 0

i have never tried it but logically i would say no because no program can check an archives actual content with out actually uncompressing it first and I don't see any uncompression links in the tail command.

Could be wrong.

2006-09-06 21:11:58 · answer #3 · answered by doyler78 5 · 0 0

nope... you would have to uncompress first... You have compressed logs that grow? Ouch!

2006-09-06 21:10:56 · answer #4 · answered by jake cigar™ is retired 7 · 0 0

try this one buddy...

# gzcat username.Aug-2006.gz | tail -f

# gzcat username.Sep-2006.gz | tail -f

2006-09-06 21:23:54 · answer #5 · answered by happydoods 3 · 0 0

fedest.com, questions and answers