Filebeat, Logback can not create new file


(Silb78) #1

I have a logback logger who writes in 10 MB files:

	<file>tmp/logs/test.log</file>
	<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
		<fileNamePattern>tmp/logs/testlogger.%i.log.zip</fileNamePattern>
		<minIndex>1</minIndex>
		<maxIndex>10</maxIndex>
	</rollingPolicy>

	<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
		<maxFileSize>10MB</maxFileSize>
	</triggeringPolicy>

my filebeat config:

- input_type: log

  paths:
- /opt/xxx/tmp/logs/test.log

now the problem is, logback can't create a new log file.


(ruflin) #2

Can you share some more details? What do you mean by logback can't create a new log file? Which is your OS?


(Silb78) #3

normally when the log file reachs the size of 10 MB, logback put the file in an archive and then create a new log-file.
but now logback doesn't create a new file.


(ruflin) #4

Do you see any errors from logback?

I have seen something similar on Windows in the past but it seems like you are on a Linux system.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.