Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yeroc opened this issue Mar 9, 2016 · 4 comments

Comments

@yeroc
Copy link

yeroc commented Mar 9, 2016

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
Copy link
Author

yeroc commented Mar 9, 2016

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

@driskell
Copy link
Owner

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

@yeroc
Copy link
Author

yeroc commented Mar 14, 2016

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

@driskell driskell added this to the v3.0.0 milestone Oct 21, 2021
@driskell driskell removed this from the v3.0.0 milestone Feb 11, 2023
@driskell
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants