Skip to content

Enable syslog-ng Service

An XCCDF Rule

Description

The syslog-ng service (in replacement of rsyslog) provides syslog-style logging by default on Debian. The syslog-ng service can be enabled with the following command:

$ sudo systemctl enable syslog-ng.service

Rationale

The syslog-ng service must be running in order to provide logging services, which are essential to system administration.

ID
xccdf_org.ssgproject.content_rule_service_syslogng_enabled
Severity
Medium
References
Updated



Remediation - OS Build Blueprint


[customizations.services]
enabled = ["syslog-ng"]

Remediation - Puppet

include enable_syslog-ng

class enable_syslog-ng {
  service {'syslog-ng':
    enable => true,
    ensure => 'running',

Remediation - Ansible

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - NIST-800-53-AU-4(1)
  - NIST-800-53-CM-6(a)

Remediation - script:kickstart


service enable syslog-ng

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then

SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" unmask 'syslog-ng.service'
"$SYSTEMCTL_EXEC" start 'syslog-ng.service'