LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   monitor log file (https://www.linuxquestions.org/questions/linux-newbie-8/monitor-log-file-641083/)

ufmale 05-09-2008 12:19 PM

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?

MensaWater 05-09-2008 12:40 PM

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.

e.g.
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.

acid_kewpie 05-09-2008 12:41 PM

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 :confused:

ufmale 05-09-2008 12:57 PM

Thank you jlightner . That is exactly what i need.


All times are GMT -5. The time now is 05:06 PM.