rsyslog
로깅을 에서 로 전환하고 싶지만 syslog-ng
구성하고 시작한 후 시작되지 않습니다.
이것은 내가 받은 로그 파일이지만 무엇이 잘못되었는지에 대한 단서를 찾을 수 없습니다.
rrr-hp:~# systemctl status syslog-ng.service
● syslog-ng.service - System Logger Daemon
Loaded: loaded (/lib/systemd/system/syslog-ng.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2021-03-22 12:51:35 CET; 4min 52s ago
Docs: man:syslog-ng(8)
Process: 448232 ExecStart=/usr/sbin/syslog-ng -F $SYSLOGNG_OPTS (code=exited, status=1/FAILURE)
Main PID: 448232 (code=exited, status=1/FAILURE)
Status: "Starting up... (Mon Mar 22 12:51:35 2021"
Mar 22 12:51:35 rrr-hp systemd[1]: syslog-ng.service: Scheduled restart job, restart counter is at 5.
Mar 22 12:51:35 rrr-hp systemd[1]: Stopped System Logger Daemon.
Mar 22 12:51:35 rrr-hp systemd[1]: syslog-ng.service: Start request repeated too quickly.
Mar 22 12:51:35 rrr-hp systemd[1]: syslog-ng.service: Failed with result 'exit-code'.
Mar 22 12:51:35 rrr-hp systemd[1]: Failed to start System Logger Daemon.
rrr-hp:~#
journalctl -xe
출력 도 있지만 나에게는 명확하지 않습니다.
rrr-hp:~# journalctl -xe
Mar 22 12:41:37 rrr-hp syslog-ng[447444]: contact: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Mar 22 12:41:37 rrr-hp systemd[1]: syslog-ng.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit syslog-ng.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Mar 22 12:41:37 rrr-hp systemd[1]: syslog-ng.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit syslog-ng.service has entered the 'failed' state with result 'exit-code'.
Mar 22 12:41:37 rrr-hp systemd[1]: Failed to start System Logger Daemon.
░░ Subject: A start job for unit syslog-ng.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit syslog-ng.service has finished with a failure.
░░
░░ The job identifier is 7765 and the job result is failed.
Mar 22 12:41:38 rrr-hp systemd[1]: syslog-ng.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ Automatic restarting of the unit syslog-ng.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Mar 22 12:41:38 rrr-hp systemd[1]: Stopped System Logger Daemon.
░░ Subject: A stop job for unit syslog-ng.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit syslog-ng.service has finished.
░░
░░ The job identifier is 7865 and the job result is done.
Mar 22 12:41:38 rrr-hp systemd[1]: syslog-ng.service: Start request repeated too quickly.
Mar 22 12:41:38 rrr-hp systemd[1]: syslog-ng.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit syslog-ng.service has entered the 'failed' state with result 'exit-code'.
Mar 22 12:41:38 rrr-hp systemd[1]: Failed to start System Logger Daemon.
░░ Subject: A start job for unit syslog-ng.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit syslog-ng.service has finished with a failure.
░░
░░ The job identifier is 7865 and the job result is failed.
rrr-hp:~#
나는 다음 을 기준으로 unix-dgram
// 사이를 전환하려고 했습니다 unix-socket
.unix-stream
syslog-ng 서비스가 systemd로 시작되지 않았지만 명령은 제대로 작동합니다.하지만 그들 중 누구도 직업을 갖고 있지 않습니다.
내 Linux 버전은 다음과 같습니다.
rrr-hp:~# cat /etc/debian_version
kali-rolling
rrr-hp:~#
무엇이 잘못될 수 있는지 또는 추가 단서를 찾을 수 있는 위치에 대한 힌트를 줄 수 있는 사람이 있나요?