You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/12/22 16:47:28 UTC
[GitHub] [couchdb] rg54 opened a new issue #3882: setting "syslog_facility" is ignored
rg54 opened a new issue #3882:
URL: https://github.com/apache/couchdb/issues/3882
## Description
With this configuration for logging :
> [log]
> level = info
> writer = syslog
> syslog_appid = couchdb
> syslog_facility = local2
Syslog logging is working, but target facility is "daemon" (ID=3), and not "local2" (ID=18)
As this journalctl JSON export is showing it :
> {
> "__CURSOR" : "s=0052d815853d49ae965b11439899bd11;i=1ae8ea;b=9ac22b707ce8433194a5b594d71dd149;m=16b81939d3;t=5d3be9254fa5b;x=550df6f10b9d43d",
> "__REALTIME_TIMESTAMP" : "1640190335842907",
> "__MONOTONIC_TIMESTAMP" : "97577941459",
> "_BOOT_ID" : "9ac22b707ce8433194a5b594d71dd149",
> "PRIORITY" : "6",
> "_SELINUX_CONTEXT" : "unconfined\n",
> "_SYSTEMD_SLICE" : "system.slice",
> "_MACHINE_ID" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
> "_HOSTNAME" : "Vm-xxxxxx-couchdb0",
> "_TRANSPORT" : "stdout",
> **"SYSLOG_FACILITY" : "3",**
> "_CAP_EFFECTIVE" : "0",
> "SYSLOG_IDENTIFIER" : "couchdb",
> "_UID" : "111",
> "_GID" : "116",
> "_COMM" : "beam.smp",
> "_EXE" : "/opt/couchdb/erts-9.3.3.15/bin/beam.smp",
> "_CMDLINE" : "/opt/couchdb/bin/../erts-9.3.3.15/bin/beam.smp -K true -A 16 -Bd -Q 500000 -- -root /opt/couchdb/bin/.. -progname couchdb -- -home /opt
> "_SYSTEMD_CGROUP" : "/system.slice/couchdb.service",
> "_SYSTEMD_UNIT" : "couchdb.service",
> "_STREAM_ID" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
> "_PID" : "30134",
> "_SYSTEMD_INVOCATION_ID" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
> "MESSAGE" : "<149>1 2021-12-22T16:25:35.842004Z xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
> }
## Steps to Reproduce
- install CouchDB 3.2.1 on Ubuntu, with distro packages
- use this syslog logging configuration
- check logs output (used command : `journalctl -t couchdb --since "1 minute ago" -o json-pretty` )
## Expected Behaviour
Logs should be sent to syslog with "local2" facility
## Your Environment
CouchDB 3.2.1 installation with distro packages, on Ubuntu 18.04.6 LTS
## Additional Context
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org