📜  journald 日志到 papertrail - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:15.682000             🧑  作者: Mango

代码示例1
[Unit]
Description=Papertrail
After=systemd-journald.service
Requires=systemd-journald.service
[Service]
ExecStart=/bin/sh -c "journalctl -f | ncat --ssl logsN.papertrailapp.com XXXXX"
TimeoutStartSec=0
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target