[systemd-devel] 回复: Is it possible to send a string to the journal of one specific systemd unit

DHAIY DHAIY dhaiy at msn.com
Fri Oct 22 08:42:48 UTC 2021


Saying we have a systemd unit named "myservice".

we can use journalctl -u myservice to inspect the logs generated by myservice.


But is there a way to insert one string from command-line into myservice's journal so that it can be seen by journalctl -u myservice later?

________________________________
发件人: DHAIY DHAIY
发送时间: 2021年10月22日 16:40
收件人: systemd-devel at lists.freedesktop.org <systemd-devel at lists.freedesktop.org>
主题: Is it possible to send a string to the journal of one specific systemd unit


Saying we have a systemd unit named "myservice".

we can use journalctl -u myservice to inspect the logs generated by myservice.


But is there a way to insert one string from command-line into myservice's journal so that it can be seen by journalctl -u myservice later?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20211022/f2c39d93/attachment.htm>


More information about the systemd-devel mailing list