如何将 systemd journalctl 日志保存到 json 文件
将 journalctl 日志保存为格式化的 json 到文件。
how-to-save-systemd-journalctl-log-to-json-file.sh
sudo journalctl -xu yourservice.service -o json-pretty > ~/test_logs.jsonCheck out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow