Log Viewing And Sizes Of Logs

From: CabloGoobla (noreply_at_all.plop)
Date: 05/23/04


Date: Sun, 23 May 2004 09:36:37 +0100

Hello,

Everyday I check the logs from my mail server. To do this, I ssh over to
the server, 'su -' to root and 'cp' the 'maillog' to a user directory. I
log out from the ssh connection, and then FTP the copied 'maillog' back to
my machine here. After opening up 'redhat-logviewer', I change the
location of the mail log to that of the freshly copied 'maillog' from my
mail server, and view it that way.

I don't mind doing this, as it only takes a few minutes to do, but I was
wondering if there was a quicker way. I have tried ssh'ing into the mail
server, rooting, copying the 'maillog' over to a home directory, and using
'vim' to view it. However, I find it much easier to read using
'redhat-logviewer'. How do you guys/gals do it ?

On a related note, where is the setting that controls the size of logs ?
I'm happy to keep them at their defaults, but I'm just wondering how big
log files have to get before they're truncated or refreshed. I ask this as
somehow I managed to have a file on my mail server called 'lastlog' that
was 18MB in size. :/ I think to be honest it had something to do with me
deleting the previous 'maillog' that existed there, as I can't remember
seeing it before I did that. After a reboot of the machine, a new
'maillog' was created and I haven't seen hide nor hair of any 'lastlog's
since then.

By the way, I'm running RedHat 9.0 and so is my mail server. I use
sendmail-8.12.8-9.90 on both.

Thanks for any information anyone might have and sorry if my questions
sound stupid to you all. :/

Regards,

CB.



Relevant Pages

  • Re: MAIL/EXPN/VRFY/ETRN ?
    ... > I have been getting a lot of these in my maillog, ... > during connection to MTA ... This means somebody from the internet is able to contact your mail server. ...
    (comp.os.linux.security)
  • Re: Log Viewing And Sizes Of Logs
    ... CabloGoobla wrote: ... > Everyday I check the logs from my mail server. ... > log out from the ssh connection, and then FTP the copied 'maillog' back to ...
    (alt.os.linux.redhat)
  • Re: mail problem
    ... > I used commandline send email to external mail server, althought ... > maillog indicated that the mail is sent successfully, ... > but when I check the remote mail server account, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Log Viewing And Sizes Of Logs
    ... >> Everyday I check the logs from my mail server. ... >> log out from the ssh connection, and then FTP the copied 'maillog' back to ... > Maybe you could edit syslog.conf to have the the messages sent to your ...
    (alt.os.linux.redhat)