升级到 Ubuntu 22.04 后 awslogs 不再运行

升级到 Ubuntu 22.04 后 awslogs 不再运行

系统升级到Ubuntu 22.04后,无法再将日志上传到CloudWatch。awslgs程序没有生成日志/var/log/awslogs.log。如何检查此问题?

$ sudo service awslogs status 
● awslogs.service - LSB: Daemon for AWSLogs agent. 
Loaded: loaded (/etc/init.d/awslogs; generated) 
Active: active (exited) since Tue 2023-10-31 03:13:04 UTC; 43s ago 
Docs: man:systemd-sysv-generator(8) 
Process: 1926902 ExecStart=/etc/init.d/awslogs start (code=exited, status=0/SUCCESS) 
CPU: 22ms

Oct 31 03:13:04 ip-systemd[1]: Starting LSB: Daemon for AWSLogs agent....   
Oct 31 03:13:04 ip-awslogs[1926908]: Starting system awslogs daemon 
Oct 31 03:13:04 ip-awslogs[1926910]: process already running. 
Oct 31 03:13:04 ip-awslogs[1926908]: * /var/awslogs/bin/awslogs-agent-launcher.sh is running 
Oct 31 03:13:04 ip-systemd[1]: Started LSB: Daemon for AWSLogs agent..

相关内容