fluent / fluent/fluent-bit

better options to name output files

Open
#2,253 11 comments 10 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
8.1k
Forks
2k
Avg merge
4d 20h
Merged PRs (30d)
71

Description

**Is your feature request related to a problem? Please describe.**

I have a config like:
```
[OUTPUT]
Name file
Match *
Format plain
Path /app/logs
```

This names the file the same as the tag name. However, I'd like the output to be .log

**Describe the solution you'd like**

Fluentd has an option to use some vars in the path:
path /path/to/${tag}/${key1}/file.%Y%m%d

This makes it east to use tag or date however you like in the filename or path.

Something along these lines would be great. Fluent-bit has separate configs for path and file so obviously it might need to work a little different. Actually, don't care about the syntax so much as long as the functionality exists.

**Describe alternatives you've considered**

I do not have a good alternative yet...

**Additional context**

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.