-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create logentries.md Signed-off-by: Carlos Alexandro Becker <[email protected]>
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` |