fluent / fluent/fluent-bit

Support a directory as input, with subdirectories

Open
#2,120 34 comments 47 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.**

The problem is that it's not possible to set a entire directory in INPUT, and get all the logs in the directory including subdirectories.

Using the `tail` plugin, I can set:
```
[INPUT]
Name tail
Path /var/log/*
```
But it will only get the files immediately under `/var/log`

**Describe the solution you'd like**

The way to achieve this in FluentD is to use `**`, which matches recursively subdirectories. We can have the same solution here.

**Describe alternatives you've considered**

Maybe a flag `recursive=True`, but I guess it's less intuitive and harder to code.

**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.