log-courier icon indicating copy to clipboard operation
log-courier copied to clipboard

Allow "/foo/**/*.log" in fileglobs to match the current subdirectory and arbitrary sub-directories.

Open yeroc opened this issue 8 years ago • 3 comments

Currently log-courier doesn't appear to support matching in cases where logs are spread out over arbitrary depths of sub-directories. This is commonly supported via a ".../**/.." fileglob operator in other systems.

Is there any chance this could be supported? If not, is there a way to achieve this already with log-courier?

Thanks, Corey

yeroc avatar Mar 09 '16 15:03 yeroc

Looking at the code I guess you're using Go's built-in Glob function so this isn't supported in the core library right now: golang/go#11862. That ticket does reference at least one other alternative library that adds support for this though...

yeroc avatar Mar 09 '16 16:03 yeroc

Could you let me know the structure of your logs that would require this functionality?

driskell avatar Mar 13 '16 08:03 driskell

@driskell The logs are spread out in sub-directories that mirror the mapping of services to a hierarchical URL structure. So someone can add a new service in a sub-directory another level deep and log-courier doesn't see it anymore. This is a commercial third-party product so we don't have control over where the logs are placed. Hope that makes sense.

yeroc avatar Mar 14 '16 04:03 yeroc

Found a package that will do this as a drop in replacement for Glob

driskell avatar Feb 11 '23 11:02 driskell