Skip to content

rsyslog

The rocket-fast system for log processing

  • PROJECT
    • News Releases
    • Features
    • Plugins
    • ChangeLogs
    • Security Advisories
  • HELP
    • Guides for rsyslog
    • Documentation
    • Support
    • FAQ
    • Video Tutorials
  • TOOLS
    • Config builder
    • Impstats Analyzer
    • RainerScript Constant String Escaper
    • Regex
  • SERVICES
    • Enterprise Support
    • Custom Development
  • WINDOWS AGENT
    • About Rsyslog Windows Agent
    • Edition Comparison
    • Order Now
    • Support Contract – Windows Agent
    • Manual
    • Support
    • Windows Agent Download
    • Guides for Windows Agent
    • RSyslog Windows Agent license document – EULA
  • AWS Offering
  • PROJECT
    • News Releases
    • Features
    • Plugins
    • ChangeLogs
    • Security Advisories
  • HELP
    • Guides for rsyslog
    • Documentation
    • Support
    • FAQ
    • Video Tutorials
  • TOOLS
    • Config builder
    • Impstats Analyzer
    • RainerScript Constant String Escaper
    • Regex
  • SERVICES
    • Enterprise Support
    • Custom Development
  • WINDOWS AGENT
    • About Rsyslog Windows Agent
    • Edition Comparison
    • Order Now
    • Support Contract – Windows Agent
    • Manual
    • Support
    • Windows Agent Download
    • Guides for Windows Agent
    • RSyslog Windows Agent license document – EULA
  • AWS Offering
rsyslog
  • Installation
  • Configuration
  • rsyslog and containers
  • Troubleshooting
    • Typical Problems
      • Output File is not Being Written
      • Troubleshooting SELinux-Related Issues
    • General Procedure
  • FAQ
  • Concepts
  • Example Use Cases
  • Tutorials
  • Development
  • Historical Documents
  • RSyslog - History
  • Licensing
  • How you can Help
  • Community Resources
  • RSyslog - Features
  • Proposals
  • Rsyslog Whitepapers
  • Free Services for Rsyslog
  • Compatibility
rsyslog
  • Troubleshooting
  • Troubleshooting SELinux-Related Issues
  • View page source

Troubleshooting SELinux-Related Issues

SELinux by its very nature can block many features of rsyslog (or any other process, of course), even when run under root. Actually, this is what it is supposed to do, so there is nothing bad about it.

If you suspect that some issues stems back to SELinux configuration, do the following:

  • temporarily disable SELinux

  • restart rsyslog

  • retry the operation

If it now succeeds, you know that you have a SELinux policy issue. The solution here is not to keep SELinux disabled. Instead do:

  • reenable SELinux (set back to previous state, whatever that was)

  • add proper SELinux policies for what you want to do with rsyslog

With SELinux running, restart rsyslog $ sudo audit2allow -a audit2allow will read the audit.log and list any SELinux infractions, namely the rsyslog infractions $ sudo audit2allow -a -M <FRIENDLY_NAME_OF_MODULE>.pp audit2allow will create a module allowing all previous infractions to have access $ sudo semodule -i <FRIENDLY_NAME_OF_MODULE>.pp Your module is loaded! Restart rsyslog and continue to audit until no more infractions are detected and rsyslog has proper access. Additionally, you can save these modules and install them on future machines where rsyslog will need the same access.

See also

Help with configuring/using Rsyslog:

  • Mailing list - best route for general questions

  • GitHub: rsyslog source project - detailed questions, reporting issues that are believed to be bugs with Rsyslog

See also

Contributing to Rsyslog:

  • Source project: rsyslog project README.

  • Documentation: rsyslog-doc project README

Copyright 2008-2023 Rainer Gerhards (Großrinderfeld), and Others.

Previous Next

About

  • About Adiscon / Impressum
  • Contact Us
  • Privacy policy / Datenschutzrichtlinien
  • Rainer's Blog

Related Products

  • LogAnalyzer
  • WinSyslog

Copyright © 2008-2020 Adiscon GmbH. Theme: Zakra By ThemeGrill.

Scroll to top
rsyslog.com uses cookies to ensure that we give you the best experience on our website. If you continue to use this site, you confirm and accept the use of Cookies on our site. You will find more informations in our Data Privacy Policy.OkRead more