<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
Christian, thanks for the reply. File permissions were fine, but you pointed me in precisely the right direction. I had the logging info in /etc/swanctl/swanctl.conf. Moving it to /etc/strongswan.d/charon-systemd.conf did the trick.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks!<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Christian Salway <christian.salway@naimuri.com><br>
<b>Sent:</b> Tuesday, August 7, 2018 9:42 PM<br>
<b>To:</b> bls s<br>
<b>Cc:</b> users@lists.strongswan.org<br>
<b>Subject:</b> Re: [strongSwan] Logging configuration with swanctl.conf</font>
<div> </div>
</div>
<meta content="text/html; charset=us-ascii">
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="">Hi bls,</div>
<div class=""><br class="">
</div>
<div class="">Configuration looks good. This is what I use.  Make sure you have saved to the correct file and that you have permission to write to /var/log</div>
<div class=""><br class="">
</div>
<div class="">
<pre class="" style="background-color:rgb(255,255,255); font-family:Menlo; font-size:9pt">cat <span class="" style="color:#5a5a5a; font-style:italic"><<</span><span class="" style="color:#000080; font-weight:bold">'EOF' </span><span class="" style="color:#5a5a5a; font-style:italic">> /etc/strongswan.d/charon-systemd.conf<br class=""></span><span class="" style="background-color:#e7ffb3">charon-systemd {<br class=""></span><span class="" style="background-color:#e7ffb3">  filelog {<br class=""></span><span class="" style="background-color:#e7ffb3">    /var/log/strongswan.log {<br class=""></span><span class="" style="background-color:#e7ffb3">        time_format = %b %e %T<br class=""></span><span class="" style="background-color:#e7ffb3">        flush_line = yes<br class=""></span><span class="" style="background-color:#e7ffb3">        default = -1<br class=""></span><span class="" style="background-color:#e7ffb3">        cfg = 2<br class=""></span><span class="" style="background-color:#e7ffb3">        ike = 2<br class=""></span><span class="" style="background-color:#e7ffb3">    }<br class=""></span><span class="" style="background-color:#e7ffb3">  }<br class=""></span><span class="" style="background-color:#e7ffb3">}<br class=""></span><span class="" style="color:#000080; font-weight:bold">EOF</span></pre>
<div class=""><br class="">
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 8 Aug 2018, at 01:25, bls s <<a href="mailto:bls3427@outlook.com" class="">bls3427@outlook.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
I'm trying to enable strongswan logging in order to submit a question, but I can't seem to get logging set up correctly with swanctl.conf Here's what I added to swanctl.conf. How can I get logging enabled in this configuration? This is strongswan 5.6.3 on latest
 Raspbian/Debian.<span class="x_Apple-converted-space"> </span><br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Thanks!<br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
charon-systemd {<br class="">
<div class="">    filelog {<br class="">
</div>
<div class="">        /var/log/charon_debug.log {<br class="">
</div>
<div class="">            time_format = %a, %Y-%m-%d %R<br class="">
</div>
<div class="">            default = 2<br class="">
</div>
<div class="">            mgr = 0<br class="">
</div>
<div class="">            net = 1<br class="">
</div>
<div class="">            enc = 1<br class="">
</div>
<div class="">            asn = 1<br class="">
</div>
<div class="">            job = 1<br class="">
</div>
<div class="">            ike_name = yes<br class="">
</div>
<div class="">            append = no<br class="">
</div>
<div class="">            flush_line = yes<br class="">
</div>
<div class="">        }<br class="">
</div>
<span class=""></span>}</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>