-
Bug
-
Resolution: Done
-
Major
-
RH199 - RHEL 7 1
-
None
URL:
Reporter RHNID:
Section: -
Language: ||||||||
Workaround:
Description: In this question 3.1-3.5 the student needs to configure rsyslog to log authpriv.alert.
in the solution step 3.3 the tail cannot be set because the file does not exist at this point. Only when step 3.4 is executed , a line is logged into the file that is created at that point in time.
below is the screen-log of the executed steps.
[root@server0 ~]# ls /etc/rsyslog.d/
21-cloudinit.conf gluster.conf.example listen.conf spice-vdagentd.conf
[root@server0 ~]# echo "authpriv.alert /var/log/auth-errors" >/etc/rsyslog.d/auth-errors.conf
[root@server0 ~]# ls /var/log
anaconda chrony dmesg.old maillog ppp secure wtmp
audit cloud-init.log gdm messages qemu-ga speech-dispatcher Xorg.0.log
auth-errors cron journal ovirt-guest-agent rhsm spooler yum.log
boot.log cups lastlog pluto sa tallylog
btmp dmesg libvirt pm-powersave.log samba tuned
[root@server0 ~]# systemctl restart rsyslog
[root@server0 ~]# ls /var/log
anaconda chrony dmesg.old maillog ppp secure wtmp
audit cloud-init.log gdm messages qemu-ga speech-dispatcher Xorg.0.log
auth-errors cron journal ovirt-guest-agent rhsm spooler yum.log
boot.log cups lastlog pluto sa tallylog
btmp dmesg libvirt pm-powersave.log samba tuned
[root@server0 ~]# logger -p authpriv.alert "Logging test authpriv.alert"
[root@server0 ~]# ls /var/log
anaconda chrony dmesg.old maillog ppp secure wtmp
audit cloud-init.log gdm messages qemu-ga speech-dispatcher Xorg.0.log
auth-errors cron journal ovirt-guest-agent rhsm spooler yum.log
boot.log cups lastlog pluto sa tallylog
btmp dmesg libvirt pm-powersave.log samba tuned
[root@server0 ~]# cat /var/log/auth-errors
Oct 29 14:34:26 appelsla root: Logging test authpriv.alert
[root@server0 ~]#
- duplicates
-
PTL-3055 RH124-252: Pg 254 -- Step 3.3 says to monitor the new auth-errors file. It doesn't exist yet.
- Closed