please add syslog support to snappy config ubuntu-core

Bug #1504645 reported by Jamie Strandboge
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Medium
Oliver Grawert
ubuntu-core-config (Ubuntu)
Fix Committed
Medium
Oliver Grawert

Bug Description

You cannot currently customize logging on snappy systems. /etc/systemd/journald.conf is not writable and neither is /etc/rsyslog.d.

In my case, I wanted to do remote logging to a syslog server. systemd does allow remote logging, but not in the syslog format and Ubuntu currently doesn't include journal-remote.

I'm not sure which logging options should be exposed via snappy config, but it seems that remote logging would be a great first step. Eg, perhaps something along the lines of:

$ snappy config ubuntu-core
...
config:
  ubuntu-core:
    logging:
      remote-syslog: 10.0.0.1

This could then create /etc/rsyslog.d/snappy-logging.conf with:
*.*;auth,authpriv.none @10.0.0.1

This will forward all logs (excluding auth and authpriv) to 10.0.0.1 udp port 514.

summary: - please make /etc/rsyslog.d a writable path
+ please add syslog support to snappy config ubuntu-core
description: updated
description: updated
Oliver Grawert (ogra)
Changed in snappy:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Oliver Grawert (ogra)
assignee: Oliver Grawert (ogra) → nobody
Changed in ubuntu-core-config (Ubuntu):
assignee: nobody → Oliver Grawert (ogra)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Oliver Grawert (ogra) wrote :

the dir is now writable, we still need support for writing to the dir in the core-control interface and some scripting in the config hook of the core snap

Changed in ubuntu-core-config (Ubuntu):
status: Confirmed → Fix Committed
Changed in snappy:
assignee: nobody → Oliver Grawert (ogra)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

@Oliver, https://github.com/snapcore/snapd/pull/2770 for core-support interface changes.

Thanks for taking care of this! :)

Revision history for this message
Oliver Grawert (ogra) wrote :

https://github.com/snapcore/core/pull/21 waits for landing now (after the fix was removed during a merge)

Zygmunt Krynicki (zyga)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.