This article applies to:
- WebMarshal 6.12 and above
Question:
- How do I set the set the size limit for WebMarshal traffic log text files?
- Can I rotate traffic logs when they reach a certain size?
Procedure:
By default WebMarshal traffic logging creates a new file daily, or when the Engine service restarts. You can set a size limit for files so that a new file is created when the existing file reaches the size limit.
To set the size limit, add the following entry to the WMEngine.config.xml file, within the WebMarshal install:
<WebMarshal>
<Engine>
<Config>
<TrafficLogRotation sizeMb="valueInMegabytes" />
</Config>
</Engine>
</WebMarshal>
where "valueInMegabytes" is an integer. Include the quote marks.
To apply the change, restart the Engine service.
To go back to the default behavior, remove this entry, or set the value to 0.
Notes:
- If the file contains other settings, be sure to retain them.
- Note that XML configuration files are case sensitive. See article Q12705