Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Request: gcplogs driver (and others) should support log level severity #22736
In the vein of #18480, any of the log drivers could accept a regular expression string as an argument to configure the driver to parse the log body (ie stdout) so that additional fields could be set for whatever log driver is bing used. For Google Stackdriver Logging (aka Google Cloud Logging), the driver sets a
Both regex ideas could be implemented using named groups.
referenced this issue
Aug 13, 2016
Agreed, applying a regex to each log message is going to seriously affect logging performance, which will be an issue for high-volume logging. Performing the same search on Google's side may be an alternative (also I realize that's not ideal as well) https://cloud.google.com/logging/docs/view/advanced_filters
I don't think we should implement this in the core functionality of docker. Note that work is being done on supporting external logging driver plugins. Once that's there, custom logging driver plugins can implement this, so that people that need this functionality, and know the implications, can install a custom driver; #28403
I'm closing this issue because we won't implement this as suggested, but feel free to comment after I closed.