SUSE Support

Here When You Need Us

How to set up the sadc cron job on SLES12

This document (7022672) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 12 (SLES 12)
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)


An event occurred on a systemd-based SLE system which needs analysis but the problem is no longer present.  No relevant data nor logs from the time of the event are available.


Start the sysstat.service unit so system activity statistics are periodically recorded by the System Activity Data Collector (sadc) cron job.

This cron job can be enabled permanently in two steps:

1.  Start the service to begin data collection:

hostname:~ # systemctl start sysstat.service

2. Enable the service so it is started automatically on next boot:

hostname:~ # systemctl enable sysstat.service


Additional Information

Starting the sysstat.service systemd unit sets up a symlink named sysstat in the /etc/cron.d directory which points to the /etc/sysstat/sysstat.cron file.  This link is removed when the service is stopped.  

By default, system activity data are collected every ten minutes and written to /var/log/sa/sa## data files, where ## corresponds to the day of the month.  These data files can be read with the "sar" program.  This is the sa1 component of sadc

A daily report is run every six hours which parses the sa## data files and outputs the activity information into to text files.  These text reports are written to /var/log/sa/sar##.  This is the sa2 component of sadc

The frequency of either one of these crons can be changed in the /etc/sysstat/sysstat.cron file.

More details about these features are available in their respective man pages.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022672
  • Creation Date: 20-Feb-2018
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.