Files
docker-docs/engine/admin/logging/logentries.md
Misty Stanley-Jones a4f5e30249 Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788)
* Reword lots of instances of 'will'

* Reword lots of instances of won't

* Reword lots of instances of we'll

* Eradicate you'll

* Eradicate 'be able to' type of phrases

* Eradicate 'unable to' type of phrases

* Eradicate 'has / have to' type of phrases

* Eradicate 'note that' type of phrases

* Eradicate 'in order to' type of phrases

* Redirect to official Chef and Puppet docs

* Eradicate gratuitous 'please'

* Reduce use of e.g.

* Reduce use of i.e.

* Reduce use of N.B.

* Get rid of 'sexagesimal' and correct some errors
2018-01-25 17:37:23 -08:00

1.6 KiB

title, description, keywords
title description keywords
Logentries logging driver Describes how to use the logentries logging driver. logentries, docker, logging, driver

The logentries logging driver sends container logs to the Logentries server.

Usage

Some options are supported by specifying --log-opt as many times as needed:

  • logentries-token: specify the logentries log set token
  • line-only: send raw payload only

Configure the default logging driver by passing the --log-driver option to the Docker daemon:

$ dockerd --log-driver=logentries

To set the logging driver for a specific container, pass the --log-driver option to docker run:

$ docker run --log-driver=logentries ...

Before using this logging driver, you need to create a new Log Set in the Logentries web interface and pass the token of that log set to Docker:

$ 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:

$ docker run --log-driver=logentries --log-opt logentries-token=abcd1234-12ab-34cd-5678-0123456789ab

line-only

You could specify whether to send log message wrapped into container data (default) or to send raw log line

$ docker run --log-driver=logentries --log-opt logentries-token=abcd1234-12ab-34cd-5678-0123456789ab --log-opt line-only=true