piatok 23. októbra 2020

Keď rsyslog chýba na CentOS 8

Mal som minimal ISO, chýbal mi rsyslog a tým pádom som nevidel známe súbory, ako /var/log/messages a pod.


Riešenie je jednoduché: treba nainštalovať rsyslog, spustiť službu a spraviť enable

takto som to robil: 







1. nainštaloval som:

[root@localhost ~]# yum install rsyslog


2. spustil som službu rsylog:

[root@localhost ~]# systemctl start rsyslog
[root@localhost ~]# systemctl status rsyslog
● rsyslog.service - System Logging Service
   Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-10-23 08:28:50 CEST; 3min 17s ago
     Docs: man:rsyslogd(8)
           https://www.rsyslog.com/doc/
 Main PID: 1529 (rsyslogd)
    Tasks: 3 (limit: 5029)
   Memory: 2.3M
   CGroup: /system.slice/rsyslog.service
           └─1529 /usr/sbin/rsyslogd -n

Oct 23 08:28:50 localhost.localdomain systemd[1]: Starting System Logging Service...
Oct 23 08:28:50 localhost.localdomain rsyslogd[1529]: [origin software="rsyslogd" swVersion="8.1911.0-3.el8" x-pid="1529" x-info="https://www.rsyslog.com"] start
Oct 23 08:28:50 localhost.localdomain systemd[1]: Started System Logging Service.
Oct 23 08:28:50 localhost.localdomain rsyslogd[1529]: imjournal: No statefile exists, /var/lib/rsyslog/imjournal.state will be created (ignore if this is first run): No such file or direct>
Oct 23 08:28:50 localhost.localdomain rsyslogd[1529]: imjournal: journal files changed, reloadin




riešenie: https://linuxconfig.org/install-syslog-on-redhat-8 



Žiadne komentáre:

Zverejnenie komentára