You are not logged in.
syslog-ng (from v. 3.6) now uses journald as its default "system" source if it detects systemd. This means that it is no longer necessary to have "ForwardToSyslog" turned on in /etc/systemd/journald.conf" and you should probably switch it off to save system resources[0] and to avoid annoying log entries.[1]
Regards,
[0] http://lists.freedesktop.org/archives/s … 22295.html
[1] https://github.com/balabit/syslog-ng/issues/314
Offline
Can you please update https://wiki.archlinux.org/index.php/Sy … ith_syslog and https://wiki.archlinux.org/index.php/Syslog-ng#Overview ?
Offline
So why exactly does it use up all of my CPU then?
How important it is, and can I turn it off? I'll report back if the CPU usage doesn't go down after a while. And if it doesn't, I'm turning it off, because I don't want to strain my CPU.
Apparently I should've waited a bit longer...
Last edited by Primoz (2014-12-05 15:03:27)
Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.
Offline
Can you please update https://wiki.archlinux.org/index.php/Sy … ith_syslog and https://wiki.archlinux.org/index.php/Syslog-ng#Overview ?
Done.
Offline
So, is it nesessary to have journald store files? That is, will syslog-ng pull data if Storage=none?
Also, I'd say citing in the wiki systemd-devel about rsyslog capabilities is pretty wierd, especially, if rsyslog dicumentation itself pretty much advises against using journald intergration: http://www.rsyslog.com/doc/master/confi … urnal.html .
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
I join the question.
I tried to avoid journald binary files and continue to use classic log files.
So i've:
grep -vi ^# /etc/systemd/journald.conf
[Journal]
Storage=none
ForwardToSyslog=yes
And since some day, my /var/log/everything.log is just empty.
Anybody knows a way to have plain text logs again please?
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Does this article https://wiki.archlinux.org/index.php/syslog-ng not work?
If you are up to date with both systemd and syslog-ng, it should just work -- no need to assert ForwardToSyslog
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I'm not completely up to date, but i've:
systemd 217-8
syslog-ng 3.6.1-1
my test:
rm /var/log/everything.log ; systemctl restart syslog-ng ; systemctl restart systemd-journald ; systemctl restart sshd ; cat /var/log/everything.log
with:
ForwardToSyslog=yes
Storage=auto
and with:
#ForwardToSyslog=yes
Storage=auto
i've:
# rm /var/log/everything.log ; systemctl restart syslog-ng ; systemctl restart systemd-journald ; systemctl restart sshd ; cat /var/log/everything.log
Dec 17 18:48:02 localhost syslog-ng[30521]: syslog-ng starting up; version='3.6.1'
Dec 17 18:48:02 Gozer systemd[1]: Starting System Logger Daemon...
Dec 17 18:48:02 Gozer systemd[1]: Started System Logger Daemon.
Dec 17 18:48:02 Gozer systemd[1]: Stopping Trigger Flushing of Journal to Persistent Storage...
Dec 17 18:48:02 Gozer systemd[1]: Stopping Journal Service...
Dec 17 18:48:02 Gozer systemd-journal[30461]: Journal stopped
Dec 17 18:48:02 Gozer systemd-journal[30527]: Runtime journal is using 8.0M (max allowed 298.6M, trying to leave 447.9M free of 2.9G available → current limit 298.6M).
Dec 17 18:48:02 Gozer systemd-journal[30527]: Runtime journal is using 8.0M (max allowed 298.6M, trying to leave 447.9M free of 2.9G available → current limit 298.6M).
Dec 17 18:48:02 Gozer systemd-journald: Received SIGTERM from PID 1 (systemd).
Dec 17 18:48:02 Gozer systemd: Starting Journal Service...
Dec 17 18:48:02 Gozer systemd-journal[30527]: Journal started
Dec 17 18:48:02 Gozer systemd: Started Journal Service.
Dec 17 18:48:02 Gozer systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
Dec 17 18:48:02 Gozer systemd[1]: Cannot add dependency job for unit cups.socket, ignoring: Unit cups.socket failed to load: No such file or directory.
Dec 17 18:48:02 Gozer systemd[1]: Stopping OpenSSH Daemon...
Dec 17 18:48:02 Gozer systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
Dec 17 18:48:02 Gozer systemd[1]: Started SSH Key Generation.
Dec 17 18:48:02 Gozer systemd[1]: Starting OpenSSH Daemon...
Dec 17 18:48:02 Gozer systemd[1]: Started OpenSSH Daemon.
with:
#ForwardToSyslog=yes
Storage=none
and with:
ForwardToSyslog=yes
Storage=none
i've:
# rm /var/log/everything.log ; systemctl restart syslog-ng ; systemctl restart systemd-journald ; systemctl restart sshd ; cat /var/log/everything.log
Dec 17 18:49:45 localhost syslog-ng[30872]: syslog-ng starting up; version='3.6.1'
so storage=none produces no text logs to me.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
I can confirm that even with the system completely up to date, syslog-ng 3.6.1 doesn't get any log from journald is storage=none is set in journald.conf.
Reverting to 3.5.6-1 and restarting the services produces text logs again.
Please somebody could test if he is able to reproduce?
--EDIT
Ok, i think this is the new intended behaviour of syslog-ng. The source directive system() expands and behaves that way, see:
http://www.balabit.com/sites/default/fi … rce-system
If the host is running under systemd, syslog-ng OSE reads directly from the systemd journal file using the systemd-journal() source.
# /usr/share/syslog-ng/tools/system-expand
## system() expands to:
channel {
source {
systemd-journal();
}; # source
}; # channel
;
--EDIT
...and here comes the right configuration; in /etc/syslog-ng/syslog-ng.conf, find this:
source src {
system();
internal();
};
Replace with this:
source src {
#system();
unix-dgram("/dev/log");
internal();
};
Again, ForwardToSyslog in /etc/systemd/journald.conf has to be set to yes
Restart syslog-ng and/or systemd-journald and get your text logs without journal files back. yay!
Last edited by kokoko3k (2014-12-18 08:29:52)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
I modified those wiki entries:
https://wiki.archlinux.org/index.php/Sy … nd_systemd
https://wiki.archlinux.org/index.php/Sy … ith_syslog
Somebody could review/modify it as needed?
Thanks.
EDIT:
I filed a bug report: https://github.com/balabit/syslog-ng/issues/357
Last edited by kokoko3k (2014-12-18 09:17:04)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline