{"id":2584,"date":"2025-06-11T08:00:00","date_gmt":"2025-06-11T06:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=2584"},"modified":"2025-04-04T11:13:28","modified_gmt":"2025-04-04T09:13:28","slug":"systemprotokollierung-2","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2025\/06\/11\/systemprotokollierung-2\/","title":{"rendered":"Systemprotokollierung 2"},"content":{"rendered":"\n<p><br>Statt Syslog-Deamon wird ja unter Debian\/Ubuntu bereits der Rsylog-Deamon genutzt und um genau den geht es in diesem Artikel&#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Die Konfigurationsdatei \u201eetc\/rsyslog.conf\u201c:<\/strong><\/p>\n\n\n\n<p>F\u00fcr Xubuntu gilt: Es kommt \u201ersyslog\u201c statt \u201esyslog\u201c zum Einsatz. Ein Blick in die Datei bringt uns aber keine neuen Erkenntnisse. Ohne echten Grund w\u00fcrde ich hier in dieser Datei nicht Hand anlegen. Ziel dieses Artikels ist auch nicht hier eigene Sachen einzuf\u00fcgen\u2026 Der neugierige Blick in die rsyslog-Datei zeigt zwei Bereiche:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Module<\/li>\n\n\n\n<li>Global-Direktiven<\/li>\n<\/ul>\n\n\n\n<p>Am Testsystem finden sich f\u00fcr die Module nur folgende Eintr\u00e4ge:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>module(load=\u201cimuxsock\u201c) # provides support for local system logging<\/li>\n\n\n\n<li>module(load=\u201cimklog\u201c permitnonkernelfacility=\u201con\u201c)<\/li>\n<\/ul>\n\n\n\n<p>Es sind also nur zwei Module geladen und darunter auch das Modul f\u00fcr Kernelmeldungen \u201eimklog\u201c. Eintr\u00e4ge f\u00fcr Global-Direktiven sind bereits in der Datei vorhanden\u2026Auf Details verzichte ich an dieser Stelle\u2026<\/p>\n\n\n\n<p><strong>Experiment 2 mit dem logger:<\/strong><\/p>\n\n\n\n<p>Das logger-Experiment soll jetzt unter rsyslog wiederholt werden und eine selbst erstellte \u201eFehlermeldung\u201c in eine Protokolldatei schreiben\u2026Folgender Befehl wird im Terminal ausgef\u00fchrt:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sudo logger -p local0.err -t TEST \u201eWeltuntergang\u201c<\/li>\n<\/ul>\n\n\n\n<p>In der Datei \u201cvar\/syslog\u201c wird diese Meldung jetzt verewigt\u2026<\/p>\n\n\n\n<p><strong>Bootvorgang + Updates + Upgrades:<\/strong><\/p>\n\n\n\n<p>Mit diesen Themen geht es im n\u00e4chsten Artikel weiter\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Statt Syslog-Deamon wird ja unter Debian\/Ubuntu bereits der Rsylog-Deamon genutzt und um genau den geht es in diesem Artikel&#8230;<\/p>\n","protected":false},"author":1,"featured_media":791,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[21],"class_list":["post-2584","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-gruppe-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/2584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=2584"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/2584\/revisions"}],"predecessor-version":[{"id":2585,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/2584\/revisions\/2585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/791"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=2584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=2584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=2584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}