Project

General

Profile

Actions

Feature #7033

closed

Syslog capability

Added by Johan Sunnerstig over 10 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
Low
Assignee:
-
Category:
Rails
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

It would be quite handy to have native syslog capability, this would help with things like keeping track of instance creations, time taken for said creations, etc. This is currently doable but it's a lot of work since it means forwarding and parsing the production.log file, and this file isn't very "syslog-y" in it's formatting.

This is no major issue or anything, but a nice to have thing.


Related issues 3 (0 open3 closed)

Related to Foreman - Feature #10487: As a developer, I should be able to define custom loggers and control them via settingsClosedEric Helms05/12/2015Actions
Related to Foreman - Tracker #8360: Full journald supportDuplicateLukas Zapletal11/12/2014

Actions
Related to Foreman - Feature #13702: Configure Foreman with syslog by defaultDuplicate02/15/2016Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Category set to Rails

Using_Syslog_with_Foreman is Johan's page on configuring rsyslog to read production.log, as noted above.

Actions #2

Updated by Jon McKenzie over 9 years ago

If this capability were developed, would it be included with Foreman or be pushed into a plugin (can a Rails engine reconfigure global logging?)?

I have a syslog implementation working on our dev Foreman using the syslogger gem and it seems to work ok. I see #10487 is attempting to address this as well, so not sure if I should pursue it. My change is pretty minimal, just two new settings syslog and syslog_facility.

Actions #3

Updated by Marek Hulán over 9 years ago

Syslogger gem looks good in term of dependencies but seems quite basic. To implement #10487 you mention I think another gem called logging would be better fit. It also supports syslog (as one of appender). So I suppose if you used logging instead, I think it would be welcome and merged into core.

Actions #4

Updated by Ohad Levy over 9 years ago

  • Related to Feature #10487: As a developer, I should be able to define custom loggers and control them via settings added
Actions #5

Updated by Marek Hulán over 9 years ago

Actually, I missed that the #10487 is already ready for testing, so I think you can just wait a bit longer, until it gets in. It should allow you to customize log outputs to use syslog.

Actions #6

Updated by Dominic Cleal over 9 years ago

Actions #7

Updated by Dominic Cleal over 9 years ago

#10487's merged and should be in nightlies soon. You can reconfigure /etc/foreman/logging.yaml to enable syslog output, but I don't know that the output is in a particularly syslog-esque style. We could take improvements to the examples in logging.yaml perhaps for formatting and setting the facility.

Actions #8

Updated by Lukas Zapletal almost 9 years ago

  • Related to Feature #13702: Configure Foreman with syslog by default added
Actions #9

Updated by Lukas Zapletal over 6 years ago

  • Status changed from New to Duplicate

We added both syslog and journad in Foreman core, now there is discussion to enable it by default by the installer. See #22559.

Actions

Also available in: Atom PDF