The Rolling File Appender is not putting the most recent log entries in the current date file.
In the log4j2.xml file I have a RollingFile appender which looks like this
<RollingFile
name="viewAppender"
filePattern="/data/view/view%d{yyyy-MM-dd}.log">
<PatternLayout><pattern>%m%n</pattern></PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy />
</Policies>
</RollingFile>
When the new log entry goes, its not going in the current date Here is the log file. It shows that the most recent entry was from Aug 30 but the log file name was for Aug 28. It should have created a new log file with filePattern view2018-08-30.log
-rw-r--r-- 1 root root 230 Aug 30 10:36 view2018-08-28.log