Project

General

Profile

Feature #22559

Configure foreman to log to system journal

Added by Lukas Zapletal 9 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Currently Foreman is configured to do simple file appender logging which requires restarts of Rails during log rotation or sending signal. It makes integration with 3rd party logging stacks more difficult. Foreman core now has new configuration options (#22493) to log to system journal and syslog with some enhancements like structured entries.

The goal of this change is to configure Foreman by default to log to:

logger: systemd (or syslog for platforms without system journal)
layout: multiline_pattern
facility: LOG_LOCAL6

In addition to that, installer will deploy the following /etc/rsyslog.d/foreman.conf config file:

local6.* /var/log/foreman/production.log

This will make sure that all logs are found where they were before the change for easy transition. Users can now enable persistent system journal to take advantage of new features like structured fields, no rotation or sealing.


Related issues

Related to Foreman - Feature #22493: Add new logging options to integrate with logging-journald gemClosed2018-02-02
Related to Foreman - Tracker #22569: Unified and structured loggingNew2018-02-13

Associated revisions

Revision 12792515 (diff)
Added by Ewoud Kohl van Wijngaarden 7 months ago

Refs #22559 - Add parameters for structured logging

History

#1 Updated by Lukas Zapletal 9 months ago

  • Related to Feature #22493: Add new logging options to integrate with logging-journald gem added

#2 Updated by Lukas Zapletal 9 months ago

#3 Updated by The Foreman Bot 8 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Pull request https://github.com/theforeman/puppet-foreman/pull/631 added

#5 Updated by Lukas Zapletal 8 months ago

  • Pull request deleted (https://github.com/theforeman/puppet-foreman/pull/631)

#6 Updated by The Foreman Bot 8 months ago

  • Pull request https://github.com/theforeman/puppet-foreman/pull/631 added

#7 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing

#8 Updated by Lukas Zapletal 7 months ago

  • Legacy Backlogs Release (now unused) set to 353
  • Status changed from Ready For Testing to Closed

#9 Updated by Tomer Brisker 4 months ago

  • Triaged set to No
  • Fixed in Releases added

#10 Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Fixed in Releases 1.19.0 added
  • Fixed in Releases deleted ()

#11 Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Target version changed from 867 to 1.19.0

Also available in: Atom PDF