<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div class="x_s-prose x_js-post-body">
<p>Saying we have a systemd unit named "myservice". <br>
</p>
<p>we can use <strong>journalctl -u myservice</strong> to inspect the logs generated by myservice.</p>
<p><br>
</p>
<p>But is there a way to insert one string from command-line into myservice's journal so that it can be seen by
<strong>journalctl -u myservice</strong> later?</p>
</div>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> DHAIY DHAIY<br>
<b>发送时间:</b> 2021年10月22日 16:40<br>
<b>收件人:</b> systemd-devel@lists.freedesktop.org <systemd-devel@lists.freedesktop.org><br>
<b>主题:</b> Is it possible to send a string to the journal of one specific systemd unit</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div class="x_s-prose x_js-post-body">
<p>Saying we have a systemd unit named "myservice". <br>
</p>
<p>we can use <strong>journalctl -u myservice</strong> to inspect the logs generated by myservice.</p>
<p><br>
</p>
<p>But is there a way to insert one string from command-line into myservice's journal so that it can be seen by
<strong>journalctl -u myservice</strong> later?</p>
</div>
<br>
</div>
</div>
</body>
</html>