LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to read log info in Linux? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-read-log-info-in-linux-410677/)

hegdeshashi 02-01-2006 10:21 PM

how to read log info in Linux?
 
Hi,

please let me know any methods to read 'log info' from files like /var/log/messeges , var/log/maillog etc....


rgds,
hegdeshashi

gilead 02-01-2006 10:32 PM

Do you want to go through the files manually or do you want something to parse them for you? If you go through them manually, you'll need to open them as root (or with su/sudo access) in a text editor. Some info in the logs is self explanatory, some isn't. Are there specific entries you wanted help with?

You could use something like logwatch will will summarise your log files to the level of detail you specify and email you a report (if you run it out of a cron job).

hegdeshashi 02-02-2006 12:10 AM

yes,

I have some specific entries to read ,please let me know how to read.

gilead 02-02-2006 02:57 AM

How to read it is with a text editor (you'll need root privileges) :) What it means is something we can explain if you show us the lines that don't make sense.

gugabaga 02-02-2006 03:16 AM

In RH and Fedora you can use Application->System Tools->System Logs

If you dont find it - check your application manager and intall it.

Other systems dont know.

Hope this help.

hegdeshashi 02-02-2006 04:50 AM

hi,


My software(server) will be sending informations like IP addresses,ports,mail size etc. per client to var/log/messeges . I would like to read thaat one based on per unit time for taking some action.


All times are GMT -5. The time now is 03:20 PM.