Electronic Frontier Foundation The Linux Foundation Linux Kernel

0 Mitglieder und 1 Gast betrachten dieses Thema.

*

Daemon

  • Administrator
  • *****
  • 781
  • Geschlecht: Männlich
Syslog-ng zu alt
10. Januar 2018, 11:42:19
Hallo!

Jedes mal wenn ich Artix starte, sehe ich die Meldung das syslog-ng zu alt sei bzw. die Konfigurationsdatei.

Problem ist, es gibt keine neuere Version außer die in testing. Kann man die gefahrlos installieren und die anderen deinstallieren?

Code
1 world-testing/syslog-ng-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for syslog-ng
2 world/syslog-ng 3.13.2-1 [installed]
    Next-generation syslogd with advanced networking and filtering capabilities
3 world/syslog-ng-openrc 20170705-1 (openrc-world) [installed]
    OpenRC syslog-ng init script
4 extra/syslog-ng 3.13.2-1 [installed]
    Next-generation syslogd with advanced networking and filtering capabilities



Linkback: https://systemdfree.de/artix-linux/20/syslog-ng-zu-alt/196/
I'm worse at what I do best and for this gift I feel blessed

*

gosia

  • Mitglied
  • ***
  • 150
Re: Syslog-ng zu alt
10. Januar 2018, 14:15:07
Hallo Daemon,
wenn ich die Warnung
Code
WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode. Please update it to use the syslog-ng 3.13 format at your time of convenience. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file.
richtig interpretiere, so ist nicht syslog-ng zu alt, sondern, wie Du ja auch schreibst, das Format der Konfigurationsdatei
Code
Configuration file format is too old
Ich würde also nicht die neuere syslog-ng aus testing nehmen, sondern die Konfigurationsdatei(en?) in /etc/syslog-ng/ "anpassen".
Hilft dir allerdings nicht wirklich weiter, weil ich auch noch nicht weiss, was da alles zu ändern ist. Die man-Page zu syslog-ng.conf und die darin aufgeführten Links bedürfen wohl längere Studien. Vielleicht hilft aber schon diese dort erwähnte Seite weiter:
https://syslog-ng.org/questions/

Allerdings scheint mir das Problem, da wohl nur Logging betreffend, nicht unbedingt kritisch zu sein.

Viele Grüße gosia

*

Daemon

  • Administrator
  • *****
  • 781
  • Geschlecht: Männlich
Re: Syslog-ng zu alt
10. Januar 2018, 14:18:15
Ja, die Datei habe ich schon auf 3.5 geändert (hat anscheinend bei vielen schon geholfen).  :D
Bei mir natürlich wieder mal nicht.

Ich schau mir den Link mal an. Danke.

*

LuMI

  • Mitglied
  • ***
  • 231
Re: Syslog-ng zu alt
10. Januar 2018, 14:26:39
Den Fehler produziert syslog-ng selber und nicht das syslog-ng-openrc script.
Bei mir half downgrade auf die syslog-ng 3.12.1-5 Version.

runscripts sind nicht für openrc sondern für runit.

Siehe: offtopic

MfG

Off-Topic: zeigenverstecken
[test@test-artix ~]$ pacman -Ss runscripts
world-testing/alsa-utils-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for alsa-utils
world-testing/avahi-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for avahi
world-testing/bind-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for bind
world-testing/bitlbee-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for bitlbee
world-testing/bluez-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for bluez
world-testing/brltty-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for brltty
world-testing/clamav-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for clamav
world-testing/cups-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for cups
world-testing/cyrus-sasl-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for cyrus-sasl
world-testing/dhcp-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for dhcp
world-testing/dnsmasq-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for dnsmasq
world-testing/elogind-runscripts 20180107-1 (runscripts-system)
    Run script for elogind
world-testing/freefall-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for freefall
world-testing/gdm-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for GDM
world-testing/git-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for git-daemon
world-testing/haveged-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for haveged
world-testing/lightdm-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for LightDM
world-testing/lighttpd-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for lighttpd
world-testing/lirc-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for lirc
world-testing/lm_sensors-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for lm_sensors
world-testing/metalog-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for metalog
world-testing/mpd-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for mpd
world-testing/mysql-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for mysql
world-testing/networkmanager-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for networkmanager
world-testing/nginx-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for nginx
world-testing/ntp-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for ntp
world-testing/openslp-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for openslp
world-testing/postfix-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for postfix
world-testing/rsync-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for rsync
world-testing/samba-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for samba
world-testing/sane-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for sane
world-testing/sddm-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for SDDM
world-testing/subversion-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for svnserve
world-testing/syslog-ng-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for syslog-ng
world-testing/transmission-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for transmission
world-testing/wicd-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for wicd
world-testing/xdm-runscripts 20180108-1 (runscripts-world)
    daemontools-style runscript for xdm
galaxy-testing/acpid-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for acpid
galaxy-testing/apcupsd-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for apcupsd
galaxy-testing/at-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for at
galaxy-testing/autofs-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for autofs
galaxy-testing/boinc-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for boinc
galaxy-testing/bumblebee-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for bumblebee
galaxy-testing/cgmanager-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for cgmanager
galaxy-testing/connman-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for connman
galaxy-testing/ddclient-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for ddclient
galaxy-testing/dnscrypt-proxy-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for dnscrypt-proxy
galaxy-testing/docker-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for docker
galaxy-testing/dovecot-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for dovecot
galaxy-testing/espeakup-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for espeakup
galaxy-testing/fcron-runscripts 20180108-1 (runscripts-misc)
    daemontools-style runscript for fcron
galaxy-testing/fwknop-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for fwknop
galaxy-testing/grafana-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for grafana
galaxy-testing/hostapd-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for hostapd
galaxy-testing/jenkins-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for jenkins
galaxy-testing/libvirt-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for libvirt
galaxy-testing/lxdm-runscripts 20180109-1 (runscripts-galaxy)
    daemontools-style runscript for lxdm
galaxy-testing/openntpd-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for openntpd
galaxy-testing/pdnsd-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for pdnsd
galaxy-testing/polipo-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for polipo
galaxy-testing/privoxy-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for privoxy
galaxy-testing/prometheus-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for prometheus
galaxy-testing/redis-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for redis
galaxy-testing/rng-tools-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for rng-tools
galaxy-testing/rsyslog-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for rsyslog
galaxy-testing/salt-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for salts
galaxy-testing/squid-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for squid
galaxy-testing/syncthing-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for syncthing
galaxy-testing/thermald-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for thermald
galaxy-testing/tlp-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for tlp
galaxy-testing/tor-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for tor
galaxy-testing/toxcore-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for tox
galaxy-testing/ufw-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for ufw
galaxy-testing/unbound-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for unbound
galaxy-testing/vnstat-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for vnstat
galaxy-testing/vsftpd-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for vsftpd
galaxy-testing/znc-runscripts 20180108-1 (runscripts-galaxy)
    daemontools-style runscript for ZNC
Status: inaktiv

*

gosia

  • Mitglied
  • ***
  • 150
Re: Syslog-ng zu alt
10. Januar 2018, 16:52:05
Hallo LuMI,
Bei mir half downgrade auf die syslog-ng 3.12.1-5 Version.
Ja, das hilft, ist letztendlich aber nur eine Notlösung. Man müsste wissen, was an der conf-Datei geändert werden muss, damit auch das aktuelle syslog-ng diese akzeptiert.

viele Grüße gosia

*

LuMI

  • Mitglied
  • ***
  • 231
Re: Syslog-ng zu alt
25. November 2018, 00:59:16
Man müsste wissen, was an der conf-Datei geändert werden muss, damit auch das aktuelle syslog-ng diese akzeptiert.

Es muss nur eine Zeile in der syslog-ng.conf angepasst werden.
Code
pacman -Qi syslog-ng | grep -i version
Version                  : 3.18.1-1
cat /etc/syslog-ng/syslog-ng.conf | grep -i version
@version: 3.17
Lösung:
Code
sed -i "s/@version: 3.17/@version: 3.18/g" /etc/syslog-ng/syslog-ng.conf

MfG

*

LuMI

  • Mitglied
  • ***
  • 231
Re: Syslog-ng zu alt
25. November 2018, 07:42:16
Damit syslog-ng nicht mehr meckert, kann man in syslog-ng.conf folgende Option einfügen:

Code
dns_cache (no);

MfG

*

virtual-dev

  • Mitglied
  • ***
  • 329
  • Geschlecht: Männlich
Re: Syslog-ng zu alt
25. November 2018, 14:09:31
Hmm, bei welchen Distributionen meckert das denn immer noch?

Ich habe mal eine originale Archlinux angeschaut und dort meckert
schon lange nichts mehr:

Code
$ cat /etc/syslog-ng/syslog-ng.conf
@version: 3.17
@include "scl.conf"
#
# /etc/syslog-ng/syslog-ng.conf
#

options {
  stats_freq (0);
  flush_lines (0);
  time_reopen (10);
  log_fifo_size (10000);
  chain_hostnames (off);
  use_dns (no);
  use_fqdn (no);
  create_dirs (no);
  keep_hostname (yes);
  perm(0640);
  group("log");
};

source src {
  system();
  internal();
};

destination d_authlog { file("/var/log/auth.log"); };
destination d_syslog { file("/var/log/syslog.log"); };
destination d_cron { file("/var/log/crond.log"); };
destination d_daemon { file("/var/log/daemon.log"); };
destination d_kernel { file("/var/log/kernel.log"); };
destination d_lpr { file("/var/log/lpr.log"); };
destination d_user { file("/var/log/user.log"); };
destination d_uucp { file("/var/log/uucp.log"); };
destination d_mail { file("/var/log/mail.log"); };
destination d_news { file("/var/log/news.log"); };
destination d_ppp { file("/var/log/ppp.log"); };
destination d_debug { file("/var/log/debug.log"); };
destination d_messages { file("/var/log/messages.log"); };
destination d_errors { file("/var/log/errors.log"); };
destination d_everything { file("/var/log/everything.log"); };
destination d_iptables { file("/var/log/iptables.log"); };
destination d_acpid { file("/var/log/acpid.log"); };
destination d_console { usertty("root"); };

# Log everything to tty12
destination console_all { file("/dev/tty12"); };

filter f_auth { facility(auth); };
filter f_authpriv { facility(auth, authpriv); };
filter f_syslog { program(syslog-ng); };
filter f_cron { facility(cron); };
filter f_daemon { facility(daemon); };
filter f_kernel { facility(kern) and not filter(f_iptables); };
filter f_lpr { facility(lpr); };
filter f_mail { facility(mail); };
filter f_news { facility(news); };
filter f_user { facility(user); };
filter f_uucp { facility(uucp); };
filter f_ppp { facility(local2); };
filter f_debug { not facility(auth, authpriv, news, mail); };
filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news, cron) and not program(syslog-ng) and not filter(f_iptables); };
filter f_everything { level(debug..emerg) and not facility(auth, authpriv); };
filter f_emergency { level(emerg); };
filter f_info { level(info); };
filter f_notice { level(notice); };
filter f_warn { level(warn); };
filter f_crit { level(crit); };
filter f_err { level(err); };
filter f_iptables { match("IN=" value("MESSAGE")) and match("OUT=" value("MESSAGE")); };
filter f_acpid { program("acpid"); };

log { source(src); filter(f_acpid); destination(d_acpid); };
log { source(src); filter(f_authpriv); destination(d_authlog); };
log { source(src); filter(f_syslog); destination(d_syslog); };
log { source(src); filter(f_cron); destination(d_cron); };
log { source(src); filter(f_daemon); destination(d_daemon); };
log { source(src); filter(f_kernel); destination(d_kernel); };
log { source(src); filter(f_lpr); destination(d_lpr); };
log { source(src); filter(f_mail); destination(d_mail); };
log { source(src); filter(f_news); destination(d_news); };
log { source(src); filter(f_ppp); destination(d_ppp); };
log { source(src); filter(f_user); destination(d_user); };
log { source(src); filter(f_uucp); destination(d_uucp); };
#log { source(src); filter(f_debug); destination(d_debug); };
log { source(src); filter(f_messages); destination(d_messages); };
log { source(src); filter(f_err); destination(d_errors); };
log { source(src); filter(f_emergency); destination(d_console); };
log { source(src); filter(f_everything); destination(d_everything); };
log { source(src); filter(f_iptables); destination(d_iptables); };

# Log everything to tty12
#log { source(src); destination(console_all); };

Eigentlich müßte eine neue config.new mit geliefert werden, wenn sich die Syntax ändert,
das wurde damals wohl nicht gemacht.
Aber seit dem kam auch nie wieder eine Meldung.

mfg

*

gosia

  • Mitglied
  • ***
  • 150
Re: Syslog-ng zu alt
25. November 2018, 16:56:06
Bei mir wird auch nichts angemeckert. Meine syslog-ng.conf ist identisch mit der von virtual-dev, syslog-ng wurde zum letzten mal am 22.11. von Version 3.17.2-1 auf 3.18.1-1 angehoben und ansonsten habe ich dieses System:

Code
uname -a
Linux MERKUR 4.19.2-artix1-1-ARTIX #1 SMP PREEMPT Wed Nov 14 22:39:05 UTC 2018 x86_64 GNU/Linux


viele Grüße gosia

*

LuMI

  • Mitglied
  • ***
  • 231
Re: Syslog-ng zu alt
26. November 2018, 11:44:34
Hmm, bei welchen Distributionen meckert das denn immer noch?
Es handelt sich um artix-lxqt-runit.
Die dns_cache Warnung ist sichtbar weil TTY1 hängen bleibt.

MfG