VNS3 uses an automatic log rotation process to maximize the historical log coverage while using minimal disk space.  This article outlines how to download locally and view VNS3's IPSec logs. 


The VNS3 IPsec log gets split into multiple files in order to avoid having one very large log file.  VNS3 rotates its logs on a weekly basis every Sunday.  Below is a list of the log files available for view/download:


ipsec.log = live IPSec log file starting at the beginning of the week - Monday 00:00 UTC (week 1)

ipsec.log.1 = last week of log files, stored in plain text (week 2)

ipsec.log.2.gz - ipsec.log.14.gz = previous 2-14 weeks of log files stored in gzipped format 


All of these logs can be retrievable from the VNs3 Web UI.


From the VNS3 web UI, ipsec.log (the "current" log file) is viewable by downloading it from the IPSec Logging page (IPSec > Logging > Download IPSec Log).


       

     



If you would like to retrieve the older log files (ipsec.log.1, ipsec.log.2.gz, ..., ipsec.log.14.gz), you can use the URL path to do so.

The URL path to access these logs is: https://<controller IP>:8000/logs/[filename].


For example: 

  



For IPSec logs older than ipsec.log.1 you will need to add .gz to the URL, as VNS3 compresses those older log files.  (i.e. https://[VNS3 IP]:8000/logs/ipsec.log.2.gz)

In order to view these logs you will need to unzip them first, using a file compression utility that supports gzip.

The oldest log file will be named ipsec.log.14.gz.


In addition to using the URL to access historical logs, the VNS3 logging container provides user access to all internal logs that aren't viewable from the web UI (ipsec logs, overlay log, error log, syslog, api_monitor log, etc.).  Here is a link to the VNS3 Logging Container guide: https://s3.amazonaws.com/cohesive-networks/dnld/Cohesive-Networks_VNS3-Plugin_Logging-Container-Guide.pdf