<div dir="ltr">Out of the box I seem to get every log message from strongswan duplicated, once logged by "charon", then again by "strongswan" after a delay, e.g.<div><br></div><div><div>Oct 10 12:26:32 sapphire charon: 05[ENC] generating INFORMATIONAL_V1 request 1411728704 [ HASH N(DPD) ]</div></div><div><br></div><div>followed later by:</div><div><br></div><div><div><div>Oct 10 12:29:32 sapphire strongswan[19104]: 05[ENC] generating INFORMATIONAL_V1 request 1411728704 [ HASH N(DPD) ]</div></div><div><br></div><div>I believe this is because the systemd unit file (strongswan.service) has the line:</div><div><div>StandardOutput=syslog, causing systemd to relay everything to syslog, but the default /etc/strongswan/strongswan.d/charon-logging.conf also has a syslog section so charon logs directly to syslog itself as well.</div><div><br></div><div>I suspect the delay between the two copies of the log entries may be related to buffering on standard out, since the logs from "strongswan" always appear in batches with the same timestamp, but I'm not sure.</div></div><div><br></div><div>In my case I'm using strongswan-5.4.0 on Centos 7 from EPELĀ <a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=774748">http://koji.fedoraproject.org/koji/buildinfo?buildID=774748</a> but I have checked the strongswan 5.5 tarball and it appears the systemd unit file and charon-logging.conf are unchanged.</div></div><div><br></div><div>I'm not really sure if this is a bug or something specific to my syslog configuration, but given that charon is logging to syslog itself in the default configuration, would it make more sense to set "StandardOutput = null" from the unit file instead? I have made this change on my own system and it appears to have the desired result.<br></div><div><br></div><div>Thanks,</div><div><br></div><div>James Birkett</div></div>
<br><br>
<br>
Scanned by <a href="http://cyberhound.com/">CyberHound</a>
<br><br>
<font size="-3"><b>Confidentiality Notice:</b>
This email, including any attachments, is confidential and may be privileged. If you are not the intended recipient please notify the sender immediately and delete it. You should not copy it or use it for any purpose or disclose its contents to any other person without CyberHound's prior written permission. CyberHound Pty Ltd reserves the right to monitor all email communications passing through its networks and devices.
</font>