![升级到 Ubuntu 22.04 后 awslogs 不再运行](https://linux22.com/image/1073842/%E5%8D%87%E7%BA%A7%E5%88%B0%20Ubuntu%2022.04%20%E5%90%8E%20awslogs%20%E4%B8%8D%E5%86%8D%E8%BF%90%E8%A1%8C.png)
系统升级到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..