Splunk logging driver (Engine)
Splunk logging driver
The splunk
logging driver sends container logs to HTTP Event Collector in Splunk Enterprise and Splunk Cloud.
Usage
You can configure the default logging driver by passing the --log-driver
option to the Docker daemon:
docker daemon --log-driver=splunk
You can set the logging driver for a specific container by using the --log-driver
option to docker run
:
docker run --log-driver=splunk ...
Splunk options
You can use the --log-opt NAME=VALUE
flag to specify these additional Splunk logging driver options:
Option | Required | Description |
---|---|---|
splunk-token | required | 登录查看完整内容
|