0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

/var/log 以下に cron, secure, message などのログがない場合

Posted at

AlmaLinuxを最小構成でインストールした場合など
/var/log 以下に cron, secure, message などのログがない場合の対応

# dnf -y install rsyslog
# systemctl start rsyslog.service
# systemctl enable rsyslog.service

出力されていなかったログができていることを確認

# ls /var/log/
anaconda  btmp    cron             dnf.log      firewalld      hawkey.log  kdump.log  maillog   mysql    private  secure   sssd   wtmp
audit     chrony  dnf.librepo.log  dnf.rpm.log  freshclam.log  httpd       lastlog    messages  php-fpm  samba    spooler  tuned

cronなどが設定されていない場合は

# systemctl start crond.service
# systemctl enable crond.service
# systemctl status crond.service  # 確認
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?