IDPA: 구성 줄의 오류 추가 문자 무시됨: ACM에서 원격 로깅(syslog 전달)을 구성하는 동안
Summary: 오류 "구성 줄의 추가 문자 무시: '*' [v8.2106.0] " ACM에서 원격 로깅(syslog 전달)을 구성하는 동안. 이 문제는 ACM의 원격 로깅(syslog 전달) 구성과 관련이 있습니다. 구성 줄의 추가 문자가 무시되었습니다. rsyslog 서비스를 재시작하려고 할 때 '*' [v8.2106.0]'이 발생하여 원격 서버로의 로그 전달을 차단합니다. ...
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
아래 명령을 사용하여 rsyslog 서비스를 재시작하려고 하면 작업이 실패합니다.
아래 명령을 사용하여 rsyslog의 상태를 확인하면 오류 메시지가 표시됩니다.
이 오류로 인해 로그가 원격 서버로 전달되지 않습니다. 이 문제는 제거해야 하는 /etc/rsyslog.conf 파일의 관련 없는 '*'로 추적됩니다.
systemctl restart
아래 명령을 사용하여 rsyslog의 상태를 확인하면 오류 메시지가 표시됩니다.
systemctl status rsyslog
error: extra characters in config line ignored: ‘’ [v8.2106.0]"
이 오류로 인해 로그가 원격 서버로 전달되지 않습니다. 이 문제는 제거해야 하는 /etc/rsyslog.conf 파일의 관련 없는 '*'로 추적됩니다.
# systemctl status rsyslog ● rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2024-04-02 14:32:04 UTC; 6s ago Docs: man:rsyslogd(8) http://www.rsyslog.com/doc/ Process: 27195 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Process: 40849 ExecStartPre=/usr/sbin/rsyslog-service-prepare (code=exited, status=0/SUCCESS) Main PID: 40853 (rsyslogd) Tasks: 10 (limit: 512) CGroup: /system.slice/rsyslog.service └─40853 /usr/sbin/rsyslogd -n -iNONE Apr 02 14:32:04 acm-8300-crk systemd[1]: Starting System Logging Service... Apr 02 14:32:04 acm-8300-crk systemd[1]: Started System Logging Service. Apr 02 14:32:04 acm-8300-crk rsyslogd[40853]: error: extra characters in config line ignored: '*' [v8.2106.0] Apr 02 14:32:04 acm-8300-crk rsyslogd[40853]: warning: ~ action is deprecated, consider using the 'stop' statement instead [v8.2106.0 try https://www.rsyslog.com/e/2307 ] Apr 02 14:32:04 acm-8300-crk rsyslogd[40853]: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.2106.0] Apr 02 14:32:04 acm-8300-crk rsyslogd[40853]: origin software="rsyslogd" swVersion="8.2106.0" x-pid="40853" x-info="[https://www.rsyslog.com start
Cause
이 오류는 /etc/rsyslog.conf 파일에 있는 추가 별표('*')로 인해 발생합니다. syslog 전달의 적절한 구성과 기능을 위해 제거해야 합니다.
Resolution
1. rsyslog 패키지가 설치되어 있는지 확인합니다.
acm:~ # rpm -qa |grep rsyslog rsyslog-8.24.0-3.39.1.x86_64
2. rsyslog 서비스가 활성화되었는지 확인합니다.
acm:~ # systemctl is-enabled rsyslog enabled
3. 텍스트 편집기에서 /etc/rsyslog.conf를 엽니다.
아래 줄에서 '*'를 제거하고 Syslog 항목을 추가합니다.
아래 줄에서 '*'를 제거하고 Syslog 항목을 추가합니다.
$template RemoteLogs,"/data01/logs/ESX/%HOSTNAME%/%PROGRAMNAME%.log"* =>Extra
$template RemoteLogs,"/data01/logs/ESX/%HOSTNAME%/%PROGRAMNAME%.log"
*.* ?RemoteLogs
&~
변경 후
$template RemoteLogs,"/data01/logs/ESX/%HOSTNAME%/%PROGRAMNAME%.log" $template RemoteLogs,"/data01/logs/ESX/%HOSTNAME%/%PROGRAMNAME%.log" *.* @xxx.xxx.xxx.xxx:514 &~여기서 xxx.xxx.xxx.xxx 는 원격 로깅 호스트의 IP 주소입니다.
4. 파일을 저장하고 닫습니다.
:wq!5. 다음 명령을 입력하여 rsyslog 프로세스를 재시작합니다.
# systemctl restart rsyslog
Affected Products
Integrated Data Protection Appliance FamilyProducts
Integrated Data Protection Appliance SoftwareArticle Properties
Article Number: 000225742
Article Type: Solution
Last Modified: 20 June 2024
Version: 1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.