fluent / fluent/fluentd

[in_tail] tail multiple logs file DailyRollingFileAppender Logback

Open
#3,898 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Ruby
Stars
13.6k
Forks
1.4k
Avg merge
1d 3h
Merged PRs (30d)
20

Description

I have read issue #544 and realize my problem is related that.

* LogBack also uses a RollingFileAppender configure to append a new file every day:

![image](https://user-images.githubusercontent.com/59785832/190967266-46f2cb69-1e49-4558-b381-934f88a7e5f2.png)

- For disaster recovery, i have to configure fluentd tail last 7 days of logfile:

```

@type tail
// i want tails current logback file and last 6 days before today
path /var/log/tomcat/Application.log,
// last 6 days before file
/var/log/Application.log.2022-09-*
follow_inodes true
path_timezone "Asia/Tokyo"
time_format "%Y-%m-%d"
pos_file /var/log/tomcat/log.pos
tag tail.multiple

@type json

```

### Describe the solution you'd like

Is there any way to solve my problem ?

### Describe alternatives you've considered

N/A

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.