Re: Intermittent log file compression issue

2015-03-24 Thread Remko Popma
Can you try filePattern with a lower-case 'f' and remove the '*' characters from the filePattern path? For example: FilePattern= *logs/$${date:-MM}/fault-%d{-MM-dd_hh_mm}-%i.log.gz* Should be filePattern= logs/$${date:-MM}/fault-%d{-MM-dd_hh_mm}-%i.log.gz Regards, Remko

Re: Intermittent log file compression issue

2015-03-24 Thread Richard Kolb
Hi Remko, Thanks, very much. Changing FilePattern to filePattern did not solve the issue. The * was an typeo in the email, sorry for that. I am still experiencing the same issue inside the container and I can't recreate the issue with the same log4j2.xml outside the container. Next step is to

Re: Intermittent log file compression issue

2015-03-24 Thread Remko Popma
Richard, So, if you specify the config location with system property log4j.configurationFile then old log files are compressed correctly on rollover, correct? If you include the config file in your application jar and rely on the classpath then what happens? Is rollover the only thing that

RE: Intermittent log file compression issue

2015-03-24 Thread Mangat Rai
I am also facing similar issue. log file compression never worked for me. i am using version 2.2 below is the configuration RollingRandomAccessFile name=Common append=false fileName=${logdir}\\Common\\common.log filePattern=${logdir}\\Common\\$${date:-MM}\\common-%d{MM-dd-}-%i.log.gz

Intermittent log file compression issue

2015-03-24 Thread Richard Kolb
Hello, I am using log4j 2.2 on Windows 2008 using Java 7 and I'm experiencing an intermittent issue where my log files used to compress, but now just move to the archive directory uncompressed. To debug, I changed the file pattern to be on the minute level (in bold), and I am getting the same