Skip to content

Commit a568046

Browse files
committed
readme editing
1 parent e7c0e6f commit a568046

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
# logspout
22

3-
A log router for Docker container log streams that runs entirely inside Docker. It attaches to all containers on a host, then routes their logs wherever you want. Other than the routes you make, it's a stateless log appliance. It's not meant for managing log files or looking at history, just a means to get your logs out to live somewhere else, where they belong.
3+
A log router for Docker container log streams that runs entirely inside Docker. It attaches to all containers on a host, then routes their logs wherever you want.
4+
5+
Other than the routes you make, it's a stateless log appliance. It's not meant for managing log files or looking at history, just a means to get your logs out to live somewhere else, where they belong.
6+
7+
For now it only captures stdout and stderr, but soon Docker will let us hook into more ... perhaps getting everything from every container's /dev/log.
48

59
## Getting logspout
610

711
Logspout is a (very small) Docker container, so you can just pull it from the index:
812

913
$ docker pull progrium/logspout
1014

11-
### Using logspout
15+
## Using logspout
1216

13-
#### Route all logs to remote syslog
17+
#### Route all container output to remote syslog
1418

1519
The simplest way to use logspout is to just take all logs and ship to a remote syslog. Just pass a default syslog target URI as the command. Also, we always mount the Docker Unix socket with `-v` to `/tmp/docker.sock`:
1620

@@ -27,9 +31,9 @@ Whether or not you run it with a default routing target, if you publish it's por
2731
progrium/logspout
2832
$ curl $(docker port `docker ps -lq` 8000)/logs
2933

30-
You should see a nicely colored stream of all your container logs. You can also filter by name, ID, log type, and more. Or you can get JSON objects, or you can upgrade to WebSocket and get JSON logs in your browser.
34+
You should see a nicely colored stream of all your container logs. You can also filter by container name, log type, and more. You can also get JSON objects, or you can upgrade to WebSocket and get JSON logs in your browser.
3135

32-
See [Streaming Endpoints](#streaming-endpoints) for more details.
36+
See [Streaming Endpoints](#streaming-endpoints) for all options.
3337

3438
#### Create custom routes via HTTP
3539

@@ -42,6 +46,8 @@ That example creates a new syslog route to [Papertrail](https://papertrailapp.co
4246

4347
By default, routes are ephemeral. But if you mount a volume to `/mnt/routes`, they will be persisted to disk.
4448

49+
See [Routes Resource](#routes-resource) for all options.
50+
4551
## HTTP API
4652

4753
### Streaming Endpoints
@@ -60,7 +66,7 @@ If you include a request `Accept: application/json` header, the output will be J
6066
Since `/logs` and `/logs/filter:<string>` endpoints can return logs from multiple source, they will by default return color-coded loglines prefixed with the name of the container. You can turn off the color escape codes with query param `colors=off` or the alternative is to stream the data in JSON format, which won't use colors or prefixes.
6167

6268

63-
### Routing Resource
69+
### Routes Resource
6470

6571
Routes let you configure logspout to hand-off logs to another system. Right now the only supported target type is via UDP `syslog`, but hey that's pretty much everything.
6672

0 commit comments

Comments
 (0)