Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hi @all,

mir ist gerade aufgefallen, das die access_log meines Apache2 jeden Zugriff mitlogt ! Die Datei ist schon über 100 MB groß. Ich hab mal in der access_log reingeschaut, aber es wird vielles gelogt was ich nicht brauche. Weiß jemand wie ich den Loglevel fürs access_log beim Apache2 runterdrehen kann ?

Danke schon mal für eure Hilfe

Gruß

Merenda

der LogLevel hat mit der access_log aber anzumerkenderweise überhaupt nix zu tun.

wenn du access_log verkleinern willst, musst du schon die zugriffe filtern (wie unten) oder eben in mehrere logfile-arten aufteilen.

# Mark requests from the loop-back interface

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog

# Mark requests for the robots.txt file

SetEnvIf Request_URI "^/robots\.txt$" dontlog

# Log what remains

CustomLog logs/access_log common env=!dontlog 

s'Amstel

der LogLevel hat mit der access_log aber anzumerkenderweise überhaupt nix zu tun.

wenn du access_log verkleinern willst, musst du schon die zugriffe filtern (wie unten) oder eben in mehrere logfile-arten aufteilen.

# Mark requests from the loop-back interface

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog

# Mark requests for the robots.txt file

SetEnvIf Request_URI "^/robots\.txt$" dontlog

# Log what remains

CustomLog logs/access_log common env=!dontlog 

s'Amstel

Danke ... ein Super Tipp ...

Ich hab jetzt erst mal die Log auf einer anderen Platte gestell auf der ich viel Platz habe und werde morgen mal anfangen zu filtern ;)

Gruß

Merenda

Zu dem Thema angeschlossen einmal kurz eine ganz doofe Frage ...

Bei mir ist das ja nicht anders, allerdings brauche ich auf meinem Server aus SEO-technischen Gründen sämtliche Log-Infos.

Gibt es eine Möglichkeit, wenn ich den Rotator auf die Logs loslasse, awstats so zu konfigurieren, dass er trotzdem alle logs auswertet, auch wenn die nicht mehr access-log heißen?!?

mfg

Eth

Ja, die gibt's. Das steht in der Doku von awstats drin wie man das löst. Bei mir hier läuft awstats auch mit logrotate. Falls Du es noch genauer wissen willst, müßte ich selbst mal die Doku raussuchen bzw. auf unseren Webservern nachsehen - man vergißt so schnell die Dinge die man nicht jeden Tag braucht :hells:

Hehe ok danke ich schau mich mal um.

Wenns nicht klappt meld ich mich :P

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.