You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugins installed: (bin/logstash-plugin list --verbose)
JVM (e.g. java -version):
If the affected version of Logstash is 7.9 (or earlier), or if it is NOT using the bundled JDK or using the 'no-jdk' version in 7.10 (or higher), please provide the following information:
JVM version (java -version)
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)
JVM installation source: sdkman!
Value of the JAVA_HOME environment variable if set. /home/andrea/.sdkman/candidates/java/current
OS version (uname -a if on a Unix-like system):
Linux kalispera 5.3.0-64-generic #58-Ubuntu SMP Fri Jul 10 19:33:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
When logstash-plain.log file reached the size configured in log4j2.properties the file has to rollover, and when the rolling file appender contains a strategy that defines an action (for example delete all file older that 1 minute) it has to execute the action.
Steps to reproduce:
Please include a minimal but complete recreation of the problem,
including (e.g.) pipeline definition(s), settings, locale, etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.
change log4 configuration to rollover at 1Kb, no time related triggering policy and a strategy to require deletion of log files older than 1 minute (config/log4j2.properties):
run logstash in debug to produce some log traffic bin/logstash -f pipeline.conf --debug and verify inlogs/ folder that the logstash-plain.log becomes bigger than 1Kb and never rollover nor the rolled over files are deleted after 1 minute
Provide logs (if relevant):
logs/ content with version 7.4.2
andrea@kalispera logs $ date
Fri 21 May 2021 09:45:33 AM CEST
andrea@kalispera logs $ ls -lart
total 28
drwxr-xr-x 13 andrea andrea 4096 May 21 09:45 ..
-rw-r--r-- 1 andrea andrea 251 May 21 09:45 logstash-plain-2021-05-21-18.log.gz
-rw-r--r-- 1 andrea andrea 250 May 21 09:46 logstash-plain-2021-05-21-19.log.gz
-rw-r--r-- 1 andrea andrea 246 May 21 09:46 logstash-plain-2021-05-21-20.log.gz
-rw-r--r-- 1 andrea andrea 249 May 21 09:46 logstash-plain-2021-05-21-21.log.gz
drwxr-xr-x 2 andrea andrea 4096 May 21 09:46 .
-rw-r--r-- 1 andrea andrea 768 May 21 09:46 logstash-plain.log
andrea@kalispera logs $ ls -lart
total 28
drwxr-xr-x 13 andrea andrea 4096 May 21 09:45 ..
-rw-r--r-- 1 andrea andrea 246 May 21 09:46 logstash-plain-2021-05-21-20.log.gz
-rw-r--r-- 1 andrea andrea 249 May 21 09:46 logstash-plain-2021-05-21-21.log.gz
-rw-r--r-- 1 andrea andrea 244 May 21 09:46 logstash-plain-2021-05-21-22.log.gz
-rw-r--r-- 1 andrea andrea 246 May 21 09:47 logstash-plain-2021-05-21-23.log.gz
drwxr-xr-x 2 andrea andrea 4096 May 21 09:47 .
-rw-r--r-- 1 andrea andrea 225 May 21 09:47 logstash-plain.log
logs/ content with version 7.5.1
andrea@kalispera logs $ ls -lart
total 32
drwxr-xr-x 13 andrea andrea 4096 May 21 09:48 ..
-rw-r--r-- 1 andrea andrea 0 May 21 09:48 logstash-slowlog-plain.log
drwxr-xr-x 2 andrea andrea 4096 May 21 09:48 .
-rw-r--r-- 1 andrea andrea 22590 May 21 09:48 logstash-plain.log
andrea@kalispera logs $ ls -lart
total 44
drwxr-xr-x 13 andrea andrea 4096 May 21 09:48 ..
-rw-r--r-- 1 andrea andrea 0 May 21 09:48 logstash-slowlog-plain.log
drwxr-xr-x 2 andrea andrea 4096 May 21 09:48 .
-rw-r--r-- 1 andrea andrea 33844 May 21 09:51 logstash-plain.log
Logstash information:
Please include the following information:
7.5.0
Plugins installed: (
bin/logstash-plugin list --verbose
)JVM (e.g.
java -version
):If the affected version of Logstash is 7.9 (or earlier), or if it is NOT using the bundled JDK or using the 'no-jdk' version in 7.10 (or higher), please provide the following information:
java -version
)JAVA_HOME
environment variable if set./home/andrea/.sdkman/candidates/java/current
OS version (
uname -a
if on a Unix-like system):Description of the problem including expected versus actual behavior:
When logstash-plain.log file reached the size configured in log4j2.properties the file has to rollover, and when the rolling file appender contains a strategy that defines an action (for example delete all file older that 1 minute) it has to execute the action.
Steps to reproduce:
Please include a minimal but complete recreation of the problem,
including (e.g.) pipeline definition(s), settings, locale, etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.
1.configure pipeline with
config/log4j2.properties
):bin/logstash -f pipeline.conf --debug
and verify inlogs/
folder that thelogstash-plain.log
becomes bigger than 1Kb and never rollover nor the rolled over files are deleted after 1 minuteProvide logs (if relevant):
logs/
content with version7.4.2
logs/
content with version7.5.1
the
logstash-plain.log
keeps growing.An heavy suspect it that's related to #11108
The text was updated successfully, but these errors were encountered: