log files

Issues related to applications and software problems and general support
Post Reply
rpyne
Posts: 5
Joined: 2015/09/22 04:25:20

log files

Post by rpyne » 2020/10/18 19:53:40

I am quite accustomed to using /var/log/secure and /var/log/messages to debug network and login issues on previous versions of CentOS. Where did they go, and is there any way I can get them back? I have several scripts that I have written to scan them for issues.

lightman47
Posts: 1225
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: log files

Post by lightman47 » 2020/10/18 20:14:59

? - all still there on my installation. You've the standard CentOS 8 installation/version ?
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

rpyne
Posts: 5
Joined: 2015/09/22 04:25:20

Re: log files

Post by rpyne » 2020/10/18 21:20:31

I did a minimal install of the latest (two weeks ago) CentOS8 iso.

CentOS Linux release 8.2.2004 (Core)

lightman47
Posts: 1225
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: log files

Post by lightman47 » 2020/10/18 21:27:36

I didn't do minimal, but I doubt that matters with system files.

Code: Select all

ls -la /var/log
total 179392
drwxr-xr-x. 21 root   root        4096 Sep  9 04:42 .
drwxr-xr-x. 22 root   root        4096 Jul  7 10:58 ..
drwxr-xr-x.  2 root   root         280 Jul  7 10:03 anaconda
drwx------.  2 root   root          23 Apr 23 21:56 audit
-rw-------.  1 root   root      362582 Oct  7 11:53 boot.log
-rw-rw----.  1 root   utmp         384 Jul  7 10:47 btmp
drwxr-xr-x.  2 chrony chrony         6 Nov 19  2019 chrony
-rw-------.  1 root   root      983458 Oct 18 17:01 cron
drwxr-xr-x.  2 lp     sys           57 Apr 23 22:59 cups
-rw-r--r--.  1 root   root     2348639 Oct 18 16:45 dnf.librepo.log
-rw-r--r--.  1 root   root     1022715 Oct 18 16:45 dnf.log
-rw-r--r--.  1 root   root     1048549 Sep  9 04:42 dnf.log.1
-rw-r--r--.  1 root   root     1048529 Jul 28 12:30 dnf.log.2
-rw-r--r--.  1 root   root      421159 Oct 18 16:45 dnf.rpm.log
-rw-------.  1 root   root       11981 Aug 30 08:58 fail2ban.log
-rw-r-----.  1 root   root      998158 Oct 18 16:11 firewalld
drwx--x--x.  2 root   gdm            6 Apr 23 22:43 gdm
drwxr-xr-x.  2 root   root           6 Jul 16 12:07 glusterfs
-rw-r--r--.  1 root   root       10310 Oct 18 05:40 hawkey.log
drwx------.  2 root   root           6 Sep 15 11:41 httpd
drwxr-xr-x.  2 root   root           6 Jul  7 09:59 insights-client
-rw-rw-r--.  1 root   utmp      314192 Oct 18 17:23 lastlog
drwx------.  3 root   root          18 May 28 13:15 libvirt
-rw-------.  1 root   root     2552563 Oct 18 17:01 maillog
-rw-------.  1 root   root   172479567 Oct 18 17:23 messages
drwx------.  2 root   root           6 Feb 27  2020 ppp
drwx------.  2 root   root           6 Jul  7 09:56 private
drwxr-xr-x.  2 root   root           6 Jun 30 12:21 qemu-ga
drwxr-xr-x.  2 root   root          64 Sep  9 12:21 rhsm
drwxr-xr-x.  2 root   root          26 Aug 29 12:53 rkhunter
drwx------.  3 root   root          17 Apr 23 22:41 samba
-rw-------.  1 root   root      165661 Oct 18 17:23 secure
drwx------.  2 root   root           6 May 17  2019 speech-dispatcher
-rw-------.  1 root   root           0 Jul  7 09:57 spooler
drwxr-x---.  2 sssd   sssd          93 Apr 23 23:48 sssd
drwxr-xr-x.  3 root   root          21 Jul  7 09:57 swtpm
drwxr-xr-x.  2 root   root          23 Apr 23 23:19 tuned
-rw-r--r--.  1 root   root          37 Jul 17 11:48 vbox-setup.log.4
-rw-r--r--.  1 root   root           0 Jul  7 11:03 vsftpd.log
-rw-rw-r--.  1 root   utmp       72192 Oct 18 17:23 wtmp
-rw-r--r--.  1 root   root       49229 Jul  7 10:05 Xorg.9.log
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

User avatar
TrevorH
Forum Moderator
Posts: 29961
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: log files

Post by TrevorH » 2020/10/18 21:51:26

It's a bug in the minimal iso, it forgets to mark a bunch of stuff including rsyslog as enabled.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

rpyne
Posts: 5
Joined: 2015/09/22 04:25:20

Re: log files

Post by rpyne » 2020/10/19 01:45:31

Thank you, I had to install and enable rsyslog, Now it leaves me wondering what else is missing.

User avatar
jlehtone
Posts: 3183
Joined: 2007/12/11 08:17:33
Location: Finland

Re: log files

Post by jlehtone » 2020/10/19 07:05:49

There is systemd-journald.service (accessible with journalctl). Is it an alternative for rsyslogd?

Post Reply

Return to “CentOS 8 - General Support”