driskell / log-courier

The Log Courier Suite is a set of lightweight tools created to ship and process log files speedily and securely, with low resource usage, to Elasticsearch or Logstash instances.
Other
419 stars 107 forks source link

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

Closed yeroc closed 1 year ago

yeroc commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

yeroc commented 8 years ago

@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 commented 1 year ago

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