Bug 935834

Summary: systemd-logger-210-25.16.1.x86_64 conflicts with (r-)syslog(-ng)
Product: [openSUSE] openSUSE Distribution Reporter: Mikhail Kasimov <mikhail.kasimov>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mpluskal
Version: 13.2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Mikhail Kasimov 2015-06-24 02:48:26 UTC
I've pratical task to forward logs from systemd-based linux (OpenSUSE 13.2, systemd-210) to remote syslog-server (FreeBSD), which forwards it to Zabbix. But there is a problem - ForwardToSyslog=yes|no option in /etc/systemd/journald.conf forwards logs to installed (r-)syslog(-ng) locally. This means that I have to install (r-)syslog(-ng) in parallel to journald and then forward logs to remote (r-)syslog(-ng) from my local (r-)syslog(-ng). But there is one more problem:

===
k_mikhail@linux-mk500:~> sudo zypper in rsyslog
.....
Trouble: systemd-logger-210-25.16.1.x86_64 conflicts with namespace:otherproviders(syslog), ... rsyslog-8.4.2-3.1.x86_64
Solution 1: remove systemd-logger-210-25.16.1.x86_64
Solution 2: do not install rsyslog-8.4.2-3.1.x86_64

Choose the number or cancel 1/2/c: c
===

The same is when try to install syslog, syslog-ng.

So, I can't install (r-)syslog(-ng) locally. And have no possilibity and time to look for another distro, where journald doesn't conflict with local (r-)syslog(-ng).


See systemd bug-tracker about this problem: https://github.com/systemd/systemd/issues/344 (I tried to propose the feature to have a workaround of this problem).

Seems that systemd logging system (journald) originally has no conflicts with simultaneously installed (r-)syslog(-ng) according to Kay Sievers' words.

Please, conside.
Comment 1 Martin Pluskal 2015-06-24 06:55:21 UTC
Well how about uninstalling systemd-logger? It's just dummy package - from describtion: "This package marks the installation to not use syslog but only the journal."

# rpm -ql systemd-logger
/var/log/README
/var/log/journal

In other words you can safely choose solution 1 offered by zypper to achieve what you want.
Comment 2 Mikhail Kasimov 2015-06-24 07:43:48 UTC
Not a way. journald has an option ForwardToSyslog=yes|no option in /etc/systemd/journald.conf, that implies, that journald and (r-)syslog(-ng) can be installed in parallel. I asked some people (they use Fedora and Arch Linux) - they don't have such problem. Why is actual for SUSE? - Please, let me know.
Comment 3 Mikhail Kasimov 2015-06-24 07:46:26 UTC
Temporary reopened for investigating the reason.
Comment 4 Martin Pluskal 2015-06-24 07:51:43 UTC
systemd-journald/journald will _NOT_ be uninstalled when you remove systemd-logger (please read comment#2).
Comment 5 Mikhail Kasimov 2015-06-24 08:07:04 UTC
Got it, you were right. Uninstalling systemd-logger installs rsyslog and journalctl is still accessable.

Sorry for my inattention. Resolved.