§2024-05-15
¶h2Nas01.yushei.net
[alexlai@h2nas01 ~]$ sudo pacman -Rns gprbuild libgpr
[alexlai@h2nas01 ~]$ sudo pacman -S syslog-ng
resolving dependencies...
looking for conflicting packages...
Packages (3) grpc-1.62.1-5 protobuf-25.3-4 syslog-ng-4.6.0-2
Total Download Size: 8.32 MiB
Total Installed Size: 37.81 MiB
:: Proceed with installation? [Y/n]
¶hc4nas02.yushei.net
alexlai@hc4nas02:~$ sudo apt install syslog-ng
alexlai@hc4nas02:~$ systemctl status syslog-ng.service
● syslog-ng.service - System Logger Daemon
Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2024-05-15 15:26:49 CST; 16s ago
Docs: man:syslog-ng(8)
Main PID: 414491 (syslog-ng)
Tasks: 5 (limit: 3462)
Memory: 180.4M
CGroup: /system.slice/syslog-ng.service
└─414491 /usr/sbin/syslog-ng -F
May 15 15:26:49 hc4nas02 systemd[1]: Starting System Logger Daemon...
May 15 15:26:49 hc4nas02 syslog-ng[414491]: DIGEST-MD5 common mech free
May 15 15:26:49 hc4nas02 systemd[1]: Started System Logger Daemon.
alexlai@hc4nas02:~$ ls /etc/syslog-ng/
conf.d patterndb.d scl.conf syslog-ng.conf
- /usr/lib/systemd/system/syslog-ng.service
The default configuration file for syslog-ng on Ubuntu systems is typically located at /etc/syslog-ng/syslog-ng.conf.
[Unit]
Description=System Logger Daemon
Documentation=man:syslog-ng(8)
Wants=network.target network-online.target
After=network.target network-online.target
[Service]
Type=notify
ExecStart=/usr/sbin/syslog-ng -F $SYSLOGNG_OPTS
ExecReload=/bin/kill -HUP $MAINPID
EnvironmentFile=-/etc/default/syslog-ng
EnvironmentFile=-/etc/sysconfig/syslog-ng
StandardOutput=journal
StandardError=journal
Restart=on-failure
[Install]
WantedBy=multi-user.target
- /etc/default/syslog-ng
# If a variable is not set here, then the corresponding
# parameter will not be changed.
# If a variables is set, then every invocation of
# syslog-ng's init script will set them using dmesg.
# log level of messages which should go to console
# see syslog(3) for details
#
#CONSOLE_LOG_LEVEL=1
# Command line options to syslog-ng
#SYSLOGNG_OPTS="--no-caps"
EnvironmentFile=-/etc/default/syslog-ng: Loads environment variables from the specified file (/etc/default/syslog-ng). The - before the filename means that if the file does not exist, it will not cause an error.
alexlai@hc4nas02:~$ cat /etc/sysconfig/syslog-ng
cat: /etc/sysconfig/syslog-ng: No such file or directory