1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

emailing access logs

Discussion in 'Plesk for Linux - 8.x and Older' started by akblackwel, Mar 20, 2005.

  1. akblackwel

    akblackwel Guest

    0
     
    This might be a logrotate question, but I thought I would start here. In my logrotate.conf it's set up to email the user after the log rotates.

    blah blah blah
    mail someuser@somedomain.com
    }


    User's is not getting an email of the logs. I looked in the mail and the logrotate logs, but have found no hints as to why this might be happening. I don't necessarily need the answer, but an idea on where to look would also be helpful.
     
  2. anandpatilg

    anandpatilg Guest

    0
     
    By default the code of the logrotate.conf is as follows:

    include /usr/local/psa/etc/logrotate.d

    /usr/local/psa/admin/logs/*_log {
    weekly
    rotate 12
    missingok
    notifempty
    copytruncate
    compress
    }

    if you want to e-mail this all you have to do is as follows:

    include /usr/local/psa/etc/logrotate.d

    /usr/local/psa/admin/logs/*_log {
    weekly
    rotate 12
    missingok
    notifempty
    copytruncate
    compress
    mail someuser@somedomain.com

    }

    If this does not works let me know what is present in your logrotate.conf so that I can tell you further.

    Thanks.
    Anand
     
  3. akblackwel

    akblackwel Guest

    0
     
    This is what I already have.

    /usr/local/psa/home/vhosts/somewhere.com/statistics/logs/*.processed {
    daily
    rotate 50
    nocompress
    missingok
    mail someone@somewhere.com
    }
    /usr/local/psa/home/vhosts/somewhere.com/statistics/logs/error_log {
    daily
    rotate 50
    nocompress
    missingok
    copytruncate
    mail someone@somewhere.com
    }
    /usr/local/psa/home/vhosts/somewhere.com/statistics/logs/error_ssl_log {
    daily
    rotate 50
    nocompress
    missingok
    copytruncate
    mail someone@somewhere.com
    }

    This config is currently not working.

    Kevin
     
  4. anandpatilg

    anandpatilg Guest

    0
     
    Can you tell me ti chich mail address you are trying to send it?
    Coz I think it will not send to any othe mail address other than the server, or try sending it to root@servername.

    Telll me if it works, if it works then it indicates that the conf file is working fine.
    Let me know what happens.


    Thanks.
    Anand
     
  5. akblackwel

    akblackwel Guest

    0
     
    I know it a a user in a domain that's alreay on the server. If that helps.

    Kevin
     
  6. anandpatilg

    anandpatilg Guest

    0
     
    Try sending it to a E-Mail address of the domain which is present on the server, i think it might work

    thanks.
    Anand
     
Loading...