RHL: hard to read when tailing logs, is there a way to slow down the 'tail'?

Posted on 2013-10-03
Medium Priority
Last Modified: 2013-10-03
Hello Experts,

I running this command when monitoring large log files:

tail -f <logfile.log> | grep myKeyword

but, the output is pretty fast.... is there a way to scroll the 'tail' using the space bar or something?

(I know a bit contradictory, I just wanted to ask)

Question by:epifanio67
  • 2
LVL 31

Assisted Solution

farzanj earned 1336 total points
ID: 39543741
Try doing something like

watch grep myKeyword logfile.log

Open in new window

LVL 25

Assisted Solution

SStory earned 664 total points
ID: 39543748
The tail command is fast and simple. But if you want more than just following a file (e.g., scrolling and searching), then less may be the command for you.

$ less /var/log/messages

Open in new window

Press Shift-F. This will take you to the end of the file, and continuously display new contents. In other words, it behaves just like tail -f.

LVL 31

Accepted Solution

farzanj earned 1336 total points
ID: 39543754
You can

tail -f <logfile.log> | grep myKeyword | less

Author Closing Comment

ID: 39543811
thank you for your help experts...

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This article explains how to use the rsync command to create backups and sync data across hosts. Rsync is a very useful command that is often used to copy data, make backups, migrate hosts, and bridge the gap between site staging and production envi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question