ctrl+c...
ctrl+c * 1e9 impatiently
...
build stopped
oops
51–60 of 211 posts
ctrl+c...
ctrl+c * 1e9 impatiently
...
build stopped
oops
# tail -f busy.log
ctrl+s # Stops flow of output.
pgup/pgdn for navigation # fn+up/dn for OS X users
ctrl+q # Continues flow.
No need to reinvent the wheel, the functionality you want is probably built into the tools you're already using.Or use multitail. It supports syntax highlighting, among other features: http://www.vanheusden.com/multitail/
multitail is great. I really cannot use command line utils that don't support colors/highlighting anymore. htop instead of top, etc. It just gives me much better visibility and readability. I'm surprised that so many non-color utils are still being used. It just feels so 1994 to me to stare at a white on black display. I guess there's nothing more slow moving and conservative than shell interfaces, thus articles like…
Of course, I'm not opposed to colours, I'm opposed to colours that look tacky / l33t hax0r, which would be most terminal stuff. I like 𝐛𝐨𝐥𝐝 better than trying to find colours I won't hate.
This _almost_ touches on the useful part of this: If you search in less and then put it in follow mode, it continues to highlight the search terms. This is very useful for trapping an exception or webcall in the wild. The downside: less buffers and tail -f prints directly. On a slow printing log this can cause events to show up slowly, and can cause performance issues on a fast moving log. If you're piping through a…
[1] Everything i've used on Linux in the last few years, not the vanilla one on the Mac, but the one in Homebrew
= In Your Terminal = Many logging tools, like Splunk, provide great features but are optimized for large-scale deployments. They require installing and configuring servers before they can be effectively used. There is still a need for a robust log file analyzer for the terminal.
= Easy to Use = Just point lnav to a directory and it will take care of the rest. File formats are automatically detected and compressed files are unpacked on the fly.
= Improved Presentation = Log files are a wealth of information, lnav can help highlight the parts that are important and filter out the noise.
If you're using a modern terminal with scrollback, you already have the ability to pause, and scroll back. # tail -f busy.log ctrl+s # Stops flow of output. pgup/pgdn for navigation # fn+up/dn for OS X users ctrl+q # Continues flow. No need to reinvent the wheel, the functionality you want is probably built into the tools you're already using.
Or just tail -f in an emacs buffer
You mean like in multiterm or something? I guess so. In emacs there are always many ways to do things, which is awesome. You can also open the file and engage auto-revert-mode or auto-revert-mode-tail. In my status bar it shows up as ARev mode. Also you can bind those to your auto-mode-alist so all .log files get the tail treatment or whatever. Scrolling can get weird. Theres some google-able settings for the timeout…
For lazy people out there: There is also the command `tailf` which is quite similar to 'tail -f'. 2 characters make so much difference :)
I saved you three more!