mirror of https://github.com/docker/cli.git
daemon/logger: Add logging driver for Google Cloud Logging
Signed-off-by: Mike Danese <mikedanese@google.com>
This commit is contained in:
parent
6c61d29231
commit
f18d114874
|
@ -397,6 +397,7 @@ __docker_complete_log_drivers() {
|
||||||
awslogs
|
awslogs
|
||||||
etwlogs
|
etwlogs
|
||||||
fluentd
|
fluentd
|
||||||
|
gcplogs
|
||||||
gelf
|
gelf
|
||||||
journald
|
journald
|
||||||
json-file
|
json-file
|
||||||
|
@ -410,13 +411,14 @@ __docker_complete_log_options() {
|
||||||
# see docs/reference/logging/index.md
|
# see docs/reference/logging/index.md
|
||||||
local awslogs_options="awslogs-region awslogs-group awslogs-stream"
|
local awslogs_options="awslogs-region awslogs-group awslogs-stream"
|
||||||
local fluentd_options="env fluentd-address labels tag"
|
local fluentd_options="env fluentd-address labels tag"
|
||||||
|
local gcplogs_options="env gcp-log-cmd gcp-project labels"
|
||||||
local gelf_options="env gelf-address labels tag"
|
local gelf_options="env gelf-address labels tag"
|
||||||
local journald_options="env labels tag"
|
local journald_options="env labels tag"
|
||||||
local json_file_options="env labels max-file max-size"
|
local json_file_options="env labels max-file max-size"
|
||||||
local syslog_options="syslog-address syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify syslog-facility tag"
|
local syslog_options="syslog-address syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify syslog-facility tag"
|
||||||
local splunk_options="env labels splunk-caname splunk-capath splunk-index splunk-insecureskipverify splunk-source splunk-sourcetype splunk-token splunk-url tag"
|
local splunk_options="env labels splunk-caname splunk-capath splunk-index splunk-insecureskipverify splunk-source splunk-sourcetype splunk-token splunk-url tag"
|
||||||
|
|
||||||
local all_options="$fluentd_options $gelf_options $journald_options $json_file_options $syslog_options $splunk_options"
|
local all_options="$fluentd_options $gcplogs_options $gelf_options $journald_options $json_file_options $syslog_options $splunk_options"
|
||||||
|
|
||||||
case $(__docker_value_of_option --log-driver) in
|
case $(__docker_value_of_option --log-driver) in
|
||||||
'')
|
'')
|
||||||
|
@ -428,6 +430,9 @@ __docker_complete_log_options() {
|
||||||
fluentd)
|
fluentd)
|
||||||
COMPREPLY=( $( compgen -W "$fluentd_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$fluentd_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
gcplogs)
|
||||||
|
COMPREPLY=( $( compgen -W "$gcplogs_options" -S = -- "$cur" ) )
|
||||||
|
;;
|
||||||
gelf)
|
gelf)
|
||||||
COMPREPLY=( $( compgen -W "$gelf_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$gelf_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -201,6 +201,7 @@ __docker_get_log_options() {
|
||||||
|
|
||||||
awslogs_options=("awslogs-region" "awslogs-group" "awslogs-stream")
|
awslogs_options=("awslogs-region" "awslogs-group" "awslogs-stream")
|
||||||
fluentd_options=("env" "fluentd-address" "labels" "tag")
|
fluentd_options=("env" "fluentd-address" "labels" "tag")
|
||||||
|
gcplogs_options=("env" "gcp-log-cmd" "gcp-project" "labels")
|
||||||
gelf_options=("env" "gelf-address" "labels" "tag")
|
gelf_options=("env" "gelf-address" "labels" "tag")
|
||||||
journald_options=("env" "labels")
|
journald_options=("env" "labels")
|
||||||
json_file_options=("env" "labels" "max-file" "max-size")
|
json_file_options=("env" "labels" "max-file" "max-size")
|
||||||
|
@ -209,6 +210,7 @@ __docker_get_log_options() {
|
||||||
|
|
||||||
[[ $log_driver = (awslogs|all) ]] && _describe -t awslogs-options "awslogs options" awslogs_options "$@" && ret=0
|
[[ $log_driver = (awslogs|all) ]] && _describe -t awslogs-options "awslogs options" awslogs_options "$@" && ret=0
|
||||||
[[ $log_driver = (fluentd|all) ]] && _describe -t fluentd-options "fluentd options" fluentd_options "$@" && ret=0
|
[[ $log_driver = (fluentd|all) ]] && _describe -t fluentd-options "fluentd options" fluentd_options "$@" && ret=0
|
||||||
|
[[ $log_driver = (gcplogs|all) ]] && _describe -t gcplogs-options "gcplogs options" gcplogs_options "$@" && ret=0
|
||||||
[[ $log_driver = (gelf|all) ]] && _describe -t gelf-options "gelf options" gelf_options "$@" && ret=0
|
[[ $log_driver = (gelf|all) ]] && _describe -t gelf-options "gelf options" gelf_options "$@" && ret=0
|
||||||
[[ $log_driver = (journald|all) ]] && _describe -t journald-options "journald options" journald_options "$@" && ret=0
|
[[ $log_driver = (journald|all) ]] && _describe -t journald-options "journald options" journald_options "$@" && ret=0
|
||||||
[[ $log_driver = (json-file|all) ]] && _describe -t json-file-options "json-file options" json_file_options "$@" && ret=0
|
[[ $log_driver = (json-file|all) ]] && _describe -t json-file-options "json-file options" json_file_options "$@" && ret=0
|
||||||
|
|
|
@ -214,7 +214,7 @@ millions of trillions.
|
||||||
Add link to another container in the form of <name or id>:alias or just
|
Add link to another container in the form of <name or id>:alias or just
|
||||||
<name or id> in which case the alias will match the name.
|
<name or id> in which case the alias will match the name.
|
||||||
|
|
||||||
**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*splunk*|*etwlogs*|*none*"
|
**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*splunk*|*etwlogs*|*gcplogs*|*none*"
|
||||||
Logging driver for container. Default is defined by daemon `--log-driver` flag.
|
Logging driver for container. Default is defined by daemon `--log-driver` flag.
|
||||||
**Warning**: the `docker logs` command works only for the `json-file` and
|
**Warning**: the `docker logs` command works only for the `json-file` and
|
||||||
`journald` logging drivers.
|
`journald` logging drivers.
|
||||||
|
|
|
@ -185,7 +185,7 @@ unix://[/path/to/socket] to use.
|
||||||
**--label**="[]"
|
**--label**="[]"
|
||||||
Set key=value labels to the daemon (displayed in `docker info`)
|
Set key=value labels to the daemon (displayed in `docker info`)
|
||||||
|
|
||||||
**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*splunk*|*etwlogs*|*none*"
|
**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*splunk*|*etwlogs*|*gcplogs*|*none*"
|
||||||
Default driver for container logs. Default is `json-file`.
|
Default driver for container logs. Default is `json-file`.
|
||||||
**Warning**: `docker logs` command works only for `json-file` logging driver.
|
**Warning**: `docker logs` command works only for `json-file` logging driver.
|
||||||
|
|
||||||
|
|
|
@ -320,7 +320,7 @@ container can access the exposed port via a private networking interface. Docker
|
||||||
will set some environment variables in the client container to help indicate
|
will set some environment variables in the client container to help indicate
|
||||||
which interface and port to use.
|
which interface and port to use.
|
||||||
|
|
||||||
**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*splunk*|*etwlogs*|*none*"
|
**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*splunk*|*etwlogs*|*gcplogs*|*none*"
|
||||||
Logging driver for container. Default is defined by daemon `--log-driver` flag.
|
Logging driver for container. Default is defined by daemon `--log-driver` flag.
|
||||||
**Warning**: the `docker logs` command works only for the `json-file` and
|
**Warning**: the `docker logs` command works only for the `json-file` and
|
||||||
`journald` logging drivers.
|
`journald` logging drivers.
|
||||||
|
|
Loading…
Reference in New Issue