Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon

Configuring and Managing System Logs in SUSE Linux Enterprise

Log management is a fundamental task that system administrators should be able to perform. The first step on the path to mastery is being able to configure the system to log to the desired locations. In this hands-on lab, we will configure rsyslog to filter certain logs to a location so they can be reviewed.

Google Cloud Platform icon

Path Info

Clock icon Beginner
Clock icon 15m
Clock icon Jan 10, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Configure rsyslog to Send All `local3` Messages to `/var/log/local3evtx` and All `local5` Messages to `/var/log/local5evtx`

    1. Change the configuration of rsyslog to route the local3 and local5 logs:

      sudo vim /etc/rsyslog.conf
    2. Edit the line that contains the reference to the files.


      local2.*;local3.* . -/var/log/localmessages


      local2.*   -/var/log/localmessages
      local3.* . -/var/log/local3evtx

      And change:

      local4.*;local5.* . -/var/log/localmessages


      local4.*   -/var/log/localmessages
      local5.* . -/var/log/local5evtx

      Save and write the file.

    3. Restart rsyslog:

      sudo systemctl restart rsyslog
  2. Challenge

    Use the `logger` Command to Verify the Logs Are Being Routed Correctly

    1. Confirm the local3evt and local5evt files do not exist:

      ls /var/log
    2. Then have rsyslog route messages to the respective files:

      sudo logger -p 'this is a test'
      sudo logger -p 'this is a test'
    3. Verify the files were both created and contain the test messages:

      ls /var/log
      sudo cat /var/log/local3evtx
      sudo cat /var/log/local5evtx

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans