[prev in list] [next in list] [prev in thread] [next in thread]
List: strongswan-users
Subject: [strongSwan] Problem with logs.
From: Pawel Grzesik <pawel.grzesik () brainstorm ! co ! uk>
Date: 2014-10-21 10:06:10
Message-ID: B8378E47-520D-4EF4-B932-9BDC6E8281F4 () brainstorm ! co ! uk
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi All,
As described on LoggerConfiguration, since 5.0.2 sending a SIGHUP to charon to reload \
strongswan.conf also reloads the logger configuration, which re-/opens the configured \
log files. But it looks like it doesn't work for me.
This is what I have now:
charon {
# two defined file loggers
filelog {
/var/log/charon.log {
# add a timestamp prefix
time_format = %b %e %T
# prepend connection name, simplifies grepping
ike_name = yes
# overwrite existing files
append = no
# increase default loglevel for all daemon subsystems
default = 2
# flush each line to disk
flush_line = yes
}
And every time when I execute "ipsec restart" my file log is created as a new empty \
file. In that case I'm loosing whole history. I changed append from no to yes but \
same result.
Anyone? :-)
Thanks,
Pawel
[Attachment #5 (unknown)]
<html><head><meta http-equiv="Content-Type" content="text/html \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class="">Hi All,<div class=""><br \
class=""></div><div class="">As described on LoggerConfiguration, since 5.0.2 sending \
a SIGHUP to charon to reload strongswan.conf also reloads the logger configuration, \
which re-/opens the configured log files.</div><div class="">But it looks like it \
doesn't work for me.</div><div class=""><br class=""></div><div class="">This is what \
I have now:</div><div class=""><br class=""></div><div class=""><pre \
style="margin-right: 1em; margin-left: 1.6em; padding: 8px; background-color: \
rgb(250, 250, 250); border: 1px solid rgb(226, 226, 226); width: auto; overflow-x: \
auto; overflow-y: hidden; color: rgb(54, 0, 12); font-size: 11px; line-height: \
16.200000762939453px;" class="">charon { # two defined file loggers
filelog {
/var/log/charon.log {
# add a timestamp prefix
time_format = %b %e %T
# prepend connection name, simplifies grepping
ike_name = yes
# overwrite existing files
append = no
# increase default loglevel for all daemon subsystems
default = 2
# flush each line to disk
flush_line = yes
}</pre><div class="">And every time when I execute "ipsec restart" my file \
log is created as a new empty file. In that case I'm loosing whole history. I changed \
append from no to yes but same result.</div></div><div class=""><br \
class=""></div><div class="">Anyone? :-)</div><div class=""><br class=""></div><div \
class="">Thanks,</div><div class="">Pawel</div></body></html>
_______________________________________________
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic