Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

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
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 14, 2025
Duration
15m

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.

      Change:

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

      To:

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

      And change:

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

      To:

      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 local3.info 'this is a test'
      sudo logger -p local5.info '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
      
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight