Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Enabling Persistent Log File Storage to a Linux Host Directory

In a cSRX Container Firewall container, log files are stored in the /var/log directory. By default, if there are no external volumes mounted for the /var/log directory, the log files will be maintained only for this cSRX Container Firewall container. If, at a future point, the cSRX Container Firewall container is deleted, those log files will be lost. You can enable persistent log file storage to a Linux host directory as a means to directly mount a directory from a Linux host to the cSRX Container Firewall container when the cSRX Container Firewall is launched.

To configure the cSRX Container Firewall container to enable persistent log file storage to a Linux host directory, use the following command.

root@csrx-ubuntu3:~/csrx# docker run -d --privileged --network=mgt_bridge -e CSRX_FORWARD_MODE="routing" -e CSRX_PACKET_DRIVER="poll" –e CSRX_CTRL_CPU="0x1" –e CSRX_DATA_CPU="0x6" -v <path-log-directory-on-host>:/var/log --name=<csrx-container-name> <csrx-image-name>