[strongSwan] logging to file via filelog in /etc/strongswan.conf is lagging and seems to have flusing problems

Christoph Anton Mitterer calestyo at scientia.net
Sun Oct 3 02:16:29 CEST 2010


Hi.

I'm using the Debian sid package of strongswan (-ikev1 not installed) and
tried to switch to logging to some file via:
...
       filelog
       {
               /var/log/charon
               {
                       default = 1
                       time_format = %x %X
                       ike_name = yes
              }
       }
...
in /etc/strongswan.conf

This seems to work, but it's extremely lagging, this means that sometimes
output is not printed for several minutes (although e.g. INFORMAL log
messages should occur).

Another issue is, that there seem to be flusing problems, meaning that log
lines are not fully written to file (e.g. it stops in the middle of the
line) until the next bunch of lines are written (after several minutes).

Switching back to syslog-logging and the problems are gone.

Any idea?

Cheers,
Chris.




More information about the Users mailing list