systemdの詳細なログを出力する方法が検索してぱっと出てこなかったのでメモ書きします。
書き方
sudo journalctl -u [プロセスの名前] -xe --no-pager
使用例
sh-4.2$ systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: active (running) since Tue 2023-06-25 17:06:09 JST; 2 days ago
sh-4.2$ sudo journalctl -u httpd.service -xe --no-pager
-- Logs begin at Fri 2023-02-17 10:15:56 JST, end at Fri 2024-06-28 09:40:25 JST. --
Apr 16 18:06:17 ip-10-9-1-249.i.asapdev.mediba.jp httpd[29262]: inner_http_request(stns)[L358] http request failed: Timeout was reached code:0
Apr 16 18:06:53 ip-10-9-1-249.i.asapdev.mediba.jp httpd[29355]: stns_request(stns)[L574] 1 retries remaining
[以下略]