Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Persistent Log File Storage

    In a cSRX 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. If, at a future point, the cSRX 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 when the cSRX is launched.

    To configure the cSRX 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>

    Modified: 2018-03-20