Skip to content

Alloy local.file_match supporting include/exclude multiple path #4423

@pikachuabc

Description

@pikachuabc

Component(s)

Alloy local.file_match

Background

I often has the need to tail file from several path pattern a,b,c or exclude file with multiple pattern such as .*, *.gz

Proposal

Currently from the official doc we can only configure a single path
The underlying file match lib that alloy use is doublestar, for newer version (v4) it supports pattern like {a,b,c} to enable multiple match.

shall upgrade the lib version seems it is a low hang fruit.
https://github.com/grafana/alloy/blob/main/internal/component/local/file_match/watch.go#L26

Tip

React with 👍 if this issue is important to you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Incoming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions