From 6436b0f4db3f59e78ea9e7a5e0bc8cb857597cca Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 16 Nov 2016 21:11:33 -0200 Subject: [PATCH] Create logentries.md (#244) * Create logentries.md Signed-off-by: Carlos Alexandro Becker --- _data/toc.yaml | 2 ++ engine/admin/logging/logentries.md | 48 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 engine/admin/logging/logentries.md diff --git a/_data/toc.yaml b/_data/toc.yaml index 9d71fbba71a..61821486497 100644 --- a/_data/toc.yaml +++ b/_data/toc.yaml @@ -153,6 +153,8 @@ toc: title: Configuring Logging Drivers - path: /engine/admin/logging/log_tags/ title: Log tags for logging driver + - path: engine/admin/logging/logentries/ + title: Logentries logging driver - path: /engine/admin/logging/awslogs/ title: Amazon CloudWatch Logs logging driver - path: /engine/admin/logging/etwlogs/ diff --git a/engine/admin/logging/logentries.md b/engine/admin/logging/logentries.md new file mode 100644 index 00000000000..551aa1b11ec --- /dev/null +++ b/engine/admin/logging/logentries.md @@ -0,0 +1,48 @@ +--- +title: Logentries logging driver +description: Describes how to use the logentries logging driver. +keywords: logentries, docker, logging, driver +--- + +The `logentries` logging driver sends container logs to the +[Logentries](https://logentries.com/) server. + +## Usage + +Some options are supported by specifying `--log-opt` as many times as needed: + + - `logentries-token`: specify the logentries log set token + +Configure the default logging driver by passing the +`--log-driver` option to the Docker daemon: + +```bash +$ dockerd --log-driver=logentries +``` + +To set the logging driver for a specific container, pass the +`--log-driver` option to `docker run`: + +```bash +$ docker run --log-driver=logentries ... +``` + +Before using this logging driver, you'll need to create a new Log Set in the +Logentries web interface. Then, you'll need to pass the token of that log set +to Docker: + +```bash +$ docker run --log-driver=logentries --log-opt logentries-token=abcd1234-12ab-34cd-5678-0123456789ab +``` + +## Options + +Users can use the `--log-opt NAME=VALUE` flag to specify additional Logentries logging driver options. + +### logentries-token + +You need to provide your log set token for logentries driver to work: + +```bash +$ docker run --log-driver=logentries --log-opt logentries-token=abcd1234-12ab-34cd-5678-0123456789ab +```