# Filebeat, Logback can not create new file

**URL:** <https://discuss.elastic.co/t/filebeat-logback-can-not-create-new-file/83181>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 21, 2017, 9:12am UTC](https://discuss.elastic.co/t/filebeat-logback-can-not-create-new-file/83181 "2017-04-21T09:12:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![silb78](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@silb78](https://discuss.elastic.co/u/silb78)\
**Post date:** [April 21, 2017, 9:12am UTC](https://discuss.elastic.co/t/filebeat-logback-can-not-create-new-file/83181/1 "2017-04-21T09:12:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 24, 2017, 8:29am UTC](https://discuss.elastic.co/t/filebeat-logback-can-not-create-new-file/83181/2 "2017-04-24T08:29:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![silb78](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@silb78](https://discuss.elastic.co/u/silb78)\
**Post date:** [April 24, 2017, 1:57pm UTC](https://discuss.elastic.co/t/filebeat-logback-can-not-create-new-file/83181/3 "2017-04-24T13:57:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 24, 2017, 6:55pm UTC](https://discuss.elastic.co/t/filebeat-logback-can-not-create-new-file/83181/4 "2017-04-24T18:55:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 22, 2017, 6:55pm UTC](https://discuss.elastic.co/t/filebeat-logback-can-not-create-new-file/83181/5 "2017-05-22T18:55:13Z")

</div>

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