Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-4923

RH199-55: rh199-ch11-lab-q3 file does not exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RH199 - RHEL 7 1
    • RH199 - RHEL 7 1
    • RH199
    • 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 ~]#

              rht-rkastl Rudolf Kastl (Inactive)
              rmegens Rik Megens (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: