Unter Ubuntu 15.04 (Vivid Vervet) /var/log/syslog
ist es extrem laut. Es gibt Nachrichten alle paar Sekunden, von systemd
, thermald
, gnome-session
. Die meisten Nachrichten scheinen nicht unbedingt erforderlich zu sein. Sie werden lediglich Status- oder Debug-Nachrichten wiederholt.
Ich finde, dass dies es sehr schwierig macht, das Syslog zur Fehlerbehebung, Überwachung auf Fehler und Ausfälle zu verwenden, da das Protokoll mit wiederholten Abschnitten nicht wesentlicher Statusmeldungen von verschiedenen Dämonen gefüllt ist. Gibt es eine Möglichkeit, das System so zu konfigurieren, dass solche Nachrichten im Syslog deaktiviert werden? Vielen Dank.
Beispielsweise wird der folgende thermald
Nachrichtenblock alle 10 bis 60 Sekunden im Syslog wiederholt:
May 30 17:37:14 xxx thermald[960]: Dropped below poll threshold
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 0:Processor
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 4:intel_powerclamp
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 6:intel_pstate
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 5:rapl_controller
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 0:Processor
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 4:intel_powerclamp
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 6:intel_pstate
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 5:rapl_controller
May 30 17:37:15 xxx thermald[960]: Read set point 0
Jedes Mal, wenn my-weather-indicator
Aktualisierungen gnome-session
das Syslog mit den folgenden 150 Zeilen Statusmeldungen füllen (im Laufe der Zeit füllt es den größten Teil des Syslogs):
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075020
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433073280
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 1740
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075080
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433073280
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 1800
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: --- Updating data in location 1 ---
May 31 08:44:41 xxx gnome-session[1848]: ****** Updating weather
May 31 08:44:41 xxx gnome-session[1848]: ****** Calculating rawOffset
May 31 08:44:41 xxx gnome-session[1848]: ********************************************************
May 31 08:44:41 xxx gnome-session[1848]: ********************************************************
May 31 08:44:41 xxx gnome-session[1848]: 05:39 << 8:24 << 20:52
May 31 08:44:41 xxx gnome-session[1848]: ********************************************************
May 31 08:44:41 xxx gnome-session[1848]: ********************************************************
May 31 08:44:41 xxx gnome-session[1848]: -------------------------------------------------------
May 31 08:44:41 xxx gnome-session[1848]: -------------------------------------------------------
May 31 08:44:41 xxx gnome-session[1848]: OpenWeatherMap Weather Service url:http://api.openweathermap.org/data/2.5/weather?lat=43.6619&lon=-79.3952
May 31 08:44:41 xxx gnome-session[1848]: -------------------------------------------------------
May 31 08:44:41 xxx gnome-session[1848]: -------------------------------------------------------
May 31 08:44:41 xxx gnome-session[1848]: ****** Updated weather
May 31 08:44:41 xxx gnome-session[1848]: **** New temperature: 9°
May 31 08:44:41 xxx gnome-session[1848]: --- End of updating data in location 1 ---
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075141
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 60
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075201
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 120
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075261
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 180
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075321
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 240
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075381
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 300
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075441
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 360
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075501
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 420
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075561
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 480
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075621
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 540
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075681
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 600
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075741
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 660
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075801
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 720
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075861
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 780
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075921
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 840
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433075981
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 900
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433076041
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 960
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433076101
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 1020
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433076161
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 1080
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
May 31 08:44:41 xxx gnome-session[1848]: message repeated 3 times: [ ///////////////////////////////////////////////////////]
May 31 08:44:41 xxx gnome-session[1848]: time.time() = 1433076221
May 31 08:44:41 xxx gnome-session[1848]: self.actualization_time = 1433075081
May 31 08:44:41 xxx gnome-session[1848]: (time.time()-self.actualization_time) = 1140
May 31 08:44:41 xxx gnome-session[1848]: self.refresh*3600 = 1800
May 31 08:44:41 xxx gnome-session[1848]: ///////////////////////////////////////////////////////
Außerdem werden gnome-session
manchmal große Warnblöcke in Bezug auf zeitgeist
Aktivitäten ausgespuckt, z. B. 200 bis 300 Nachrichtenzeilen, die diesen ähneln:
May 31 15:01:21 xxx gnome-session[1848]: ** (zeitgeist-datahub:2657): WARNING **: recent-manager-provider.vala:132: Desktop file for "file:///home/zzz/Documents/file.png" was not found, exec: google-chrome-stable, mime_type: image/png
loglevel
zu warn
oder der higher..change ExecStart=/usr/sbin/thermald --no-daemon --dbus-enable
Linie /lib/systemd/system/thermald.service
auf ExecStart=/usr/sbin/thermald --no-daemon --dbus-enable --loglevel=warn
und starten Sie den Dienst ..
grep '^[^#].*syslog' /etc/rsyslog.d/50-default.conf
?