Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-09-2008, 01:19 PM   #1
Registered: Feb 2007
Posts: 386

Rep: Reputation: 30
monitor log file

I want to monitor what is going on when I am trying to access this machine via ethernet.

Once i did something, i will open the log file and score through the end of the file. Sometimes i lost track of what is new regarding to the new event.

Is there a way that i can view this log file as it being updated?
Old 05-09-2008, 01:40 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,043
Blog Entries: 14

Rep: Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212
You can monitor any text log file simply by typing:

tail -f <logfile>
Where <logfile> is the name (with path) of the file in which you're interested.

tail -f /var/log/messages

Would show you everything going on in the System's main log file called messages.

Also - You can get more detailed information on networking by using tcpdump/ethereal/wireshark. Note that this dumps tons of information so shouldn't be left running for long periods of time but is good for trying to figure out what is happening when networking things aren't going the way you expect.
Old 05-09-2008, 01:41 PM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
you once did something and a log file scrolled and you were confused about an event? I honestly have no idea what you're talking about
Old 05-09-2008, 01:57 PM   #4
Registered: Feb 2007
Posts: 386

Original Poster
Rep: Reputation: 30
Thank you jlightner . That is exactly what i need.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
any ideas to reduce log file size or make log file size managed? George2 Programming 2 08-13-2006 07:55 AM
How to control log file size in /var/log? yan Linux - General 2 10-13-2003 06:00 PM
what log file generator that support squid log? heero82 Linux - Software 2 07-11-2003 09:52 PM
download monitor/log radnix Linux - Security 4 06-11-2003 09:13 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 09:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration