'Disable Tomcat stdout logging in a specific range of hours
Good morning, I've tried to check this online, but I've not found a specific solution.
Is it possible to disable tomcat stdout logfile-writing only in a specific time interval? For example disabling the writing every night between 3AM - 5AM?
In our environment, we have a lot of Windows server (each server for a customer) and within this servers there are a couple of Tomcat setups regarding the customer web application backend (one Tomcat for staging-test area, one for preproduction environment and one for live environment): regarding the Tomcats for live environment (we automatically shut-off the others when they are not used), on a couple of server, our customers have requested us a specific setup regarding a tool which sends every night a lot of requests to the backend in order to fill the database with statistics data.
This operation causes tomcatprod-stdoutlog to reach every night ridiculous amount of GBs in terms of size, but we don't need the logs regarding the statistic retrieval, they are useless.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
