Defining filebeat prospector paths with regex?


#1

Hi,

I'm using filebeat 1.2.1 and very happy for the new environment variable feature! Thank you.

Another thing that would be very helpful if we could define the prospector paths using regular expressions? That would make configuration management even more straight forward as I wouldn't have to define environment variables for the various paths on each system. The reason is that we have different log file names based on individual systems.

Is this worth considering, or is it possibly on the road map already?

I realize I can use regex to exclude certain files, so that's an alternative, though maybe less ideal.

Thanks,
Robert.


(Steffen Siering) #2

I think the path can be a glob pattern. Not as flexible as full regexes, but most often should do the trick.


(system) #3