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

Complete site logs?

Discussion in 'Plesk for Linux - 8.x and Older' started by AllenEllis, Mar 14, 2006.

  1. AllenEllis

    AllenEllis Guest

    0
     
    I'd like to get the full, raw logs for this month, and I can't seem to find out how to do it. I go to the "Log Manager" for my domain, and the "access log" file is only ~30kb, containing information for the last 24 hours or so. Is there a way that I can view complete, raw logs for the last month? Webalizer seems to be able to compile information - so it must be on the server somewhere (unless webalizer just grabs data as it arrives).

    Thanks.

    *edit*

    I think I'm closer... I went to "report" for my domain and then to "traffic history" - now I can see my bandwidth totals for each month - but there don't seem to be any links to get more detailed listings. Am I missing something really obvious here? I feel kind of silly...

    Thanks again.
     
  2. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    Have you checked out the "access_log.processed files? Between them and the error logs you should have a complete picture. You also need to see how your log rotation is set. You may be deleting the access logs too frequently.
     
  3. AllenEllis

    AllenEllis Guest

    0
     
    Unfortunatley all that I see are seven files

    access_log
    access_ssl_log
    error_log
    error_log.1
    error_ssl_log
    error_ssl_log.1
    xferlog_regular

    Log rotation was set to "disable". Does that mean it's been dropping log files as they come in? I've got it at "enable" now, with a maximum log files set to 0 (I'm guessing 0 will translate to unlimited?)

    Thanks. :)
     
  4. AllenEllis

    AllenEllis Guest

    0
     
    If anyone has an answer to this question, I'd appreciate it.

    Thanks. :)
     
  5. eilko

    eilko Regular Pleskian

    28
    73%
    Joined:
    Aug 1, 2001
    Messages:
    468
    Likes Received:
    4
    Location:
    Enschede, Netherlands
    webalizer keeps track of the stats in the files webalizer.current and webalizer.hist. After webalizer has parsed the logfiles you don't need them anymore. The stats in Plesk do the same, they are calculated every night by the statistics cronjob.

    If you have enabled logrotation you will see

    access_log for the current day
    access_log.processed for the running lograte period
    access_log.processed.1.gz for the first rotated period
    access_log.processed.2.gz for the second rotated period
     
  6. AllenEllis

    AllenEllis Guest

    0
     
    Webalizer compiles data, but it also throws data out. There's no way to get a list of IP's and dates that have accessed a particular URL, for example. That's why I want the raw logs - I can run it through a PHP script or an Excel macro that can compile a list of IP's that have accessed a particular URL. Webalizer won't give me that - it only summarizes data.

    Hm... I don't see that :(. Like I said, log rotation was turned off. I've got it on now (turned it on a couple of days ago), but I'm still only seeing a single access_log file.

    So, does this mean that it hasn't been storing log files older than 24 hours? Isn't there anywhere on the server they're being stored for longer periods of time?

    Thanks again.
     
  7. AllenEllis

    AllenEllis Guest

    0
     
    I'm really close to an answer here - if someone can just reply to my last question I'll be set.

    Thanks again.
     
  8. eilko

    eilko Regular Pleskian

    28
    73%
    Joined:
    Aug 1, 2001
    Messages:
    468
    Likes Received:
    4
    Location:
    Enschede, Netherlands
    no, not that I am aware of.
     
  9. brucew

    brucew Guest

    0
     
    I think what you want is to change the log rotation.

    In the domain, choose Log Manager, then Log Rotation and change the Log Rotation Condition to By Time, Monthly. You may want to increase the Maximum Number of Log Files so you have more than just the current month.
     
  10. AllenEllis

    AllenEllis Guest

    0
     
    Thanks - does anyone know, if I set the maximum number of log files to 0, will that make it unlimited? It doesn't seem to have been behaving that way. I'll bump it up to 99.
     
Loading...