The default operation of commit script trace files is to log important events in a file called cscript.log located in the /var/log directory. When the file cscript.log reaches 128 kilobytes (KB), it is renamed cscript.log.0, then cscript.log.1, and so on, until there are 10 trace files. Then the oldest trace file (cscript.log.9) is overwritten. (For more information about how log files are created, see the JUNOS System Log Messages Reference.)
You cannot change the directory (/var/log) in which trace files are located. However, you can customize the other trace file settings by including the following statements at the [edit system scripts commit traceoptions] hierarchy level:
- [edit system scripts commit traceoptions]
- file filename files number size size;
- flag {
- all;
- events;
- input;
- offline;
- output;
- rpc;
- xslt;
- }
These statements are described in the following sections: