Unable to use ldap groups in rsyslog

Solution Unverified - Updated -

Issue

We have a centralized rsyslog server receiving logs of all our network equipment. This server is a client of a LDAP server. SSSD is used to authenticate users. In order to allow users to read the logs but not modify them, we have set the following directives

$FileOwner root
$FileGroup rsyslogusers
$FileCreateMode 0640

rsyslogusers is a ldap group, which contains all the LDAP users that need to access the logs.

The problem is that rsyslog starts prior to sssd. So, when rsyslog starts, the group rsyslogusers does not exists on the system. As rsyslog doesn't find the group, it creates logs using root:root. And so the users are unable to access the logs.

Environment

  • Red Hat Enterprise Linux 6.4
  • rsyslog

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content