Fehlendes Zugriffsprotokoll für den virtuellen Host in Plesk

2128
Cummander Checkov

Aus irgendeinem Grund verstehe ich nicht, nachdem ich vor einigen Monaten einen neuen virtuellen Host / eine neue Domäne in Plesk erstellt habe, kann ich das Zugriffsprotokoll nicht finden.

Ich habe das beim Laufen bemerkt

/usr/local/psa/admin/sbin/statistics 

Der betreffende Host wird gescannt

Main HTML page is 'awstats.<hostname_masked>-http.html'. Create/Update database for config "/opt/psa/etc/awstats/awstats.<hostname_masked>.com-https.conf" by AWStats version 6.95 (build 1.943) From data in log file "-"... Phase 1 : First bypass old records, searching new record... Searching new records from beginning of log file... Jumped lines in file: 0 Parsed lines in file: 0 Found 0 dropped records, Found 0 corrupted records, Found 0 old records, Found 0 new qualified records. 

So basically no access logs have been parsed/found. I then went on to check if i could find the log myself.

I looked in

/var/www/vhosts/<hostname_masked>.com/statistics/logs 

but all i find is

error_log 

Does anybody know what is wrong here and perhaps how i could fix this?

Note: in the

<hostname_masked>.com/conf/ 

folder i keep a custom vhost.conf file, which however contains only some rewrite conditions plus a directory statement that contains php_admin_flag and php_admin_value settings. None of them are related to logging though.

2

2 Antworten auf die Frage

2
Sergey L

Wenn keine Anpassungen vorgenommen wurden, sollte access_log genau in sein /var/www/vhosts/<hostname_masked>.com/statistics/logs

Ich würde versuchen, folgendes zu überprüfen

  1. Sie haben wirklich Besucher auf der Site
  2. Überprüfen Sie, ob Sie diese Zeile haben /var/www/vhosts/<hostname_masked>.com/last_httpd.include:

    ErrorLog "/var/www/vhosts/domain.com/statistics/logs/error_log"

  3. Überprüfen Sie den Inhalt von /var/log/httpd/access_log
  4. Überprüfen Sie die Logrotationsrichtlinie (in der Plesk-Benutzeroberfläche verfügbar), und erhöhen Sie den Zeitraum / die Größe, um sie zu drehen
Danke für deine Antwort. Die Site hat definitiv Besucher - es ist ein Geschäft und viele Bestellungen sind eingegangen. Ich kann keine last_httpd.include finden. Das Fehlerprotokoll funktioniert einwandfrei. Ihr Hinweis für / var / log / httpd / access_log war ziemlich gut, da ich Zugriffsprotokolle in / var / log / apache2 / finden konnte, aber es gibt mehrere tar.gz-Archive und es ist ziemlich chaotisch. Mit | grep konnte ich findenin was cat * in diesem Ordner zurückgekehrt war, aber ich habe keine Ahnung, wie ich alle Daten der letzten Monate erhalten kann. Ich frage mich, warum Plesk diese Protokolle nicht im aktuellen vhosts-Protokollverzeichnis speichert :( Cummander Checkov vor 11 Jahren 1
Möglicherweise müssen Sie den Support anrufen. Normalerweise sollte sich access_log im vhost-Verzeichnis befinden. Sergey L vor 11 Jahren 0
Danke dir. Es gibt keine Unterstützung :) Cummander Checkov vor 11 Jahren 0
Für mein Plesk 12 habe ich die Protokolldatei gefunden, indem ich `/ var / www / vhosts / überprüfte..com / conf / httpd.conf`, das auf `/ var / www / vhosts / system / zeigt/ logs / error_log` icc97 vor 9 Jahren 0
0
Cummander Checkov

I was able to find access log data in /var/log/apache2/

It was not ordered correctly and it was zipped up due to logration features.

In any case, adding this line to my vhost.conf in /var/www/vhosts//conf/

CustomLog /var/www/vhosts/<hostname_masked>/statistics/logs/ combined 

turned out to solve the logging issue for this specific VirtualHost.