Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zendesk/docker-logs-tail
Docker Logs Tail simultaneously tails logs for all running Docker containers, interleaving them in the command line output
https://github.com/zendesk/docker-logs-tail
Last synced: 6 days ago
JSON representation
Docker Logs Tail simultaneously tails logs for all running Docker containers, interleaving them in the command line output
- Host: GitHub
- URL: https://github.com/zendesk/docker-logs-tail
- Owner: zendesk
- License: apache-2.0
- Created: 2016-09-26T00:53:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T16:30:21.000Z (over 1 year ago)
- Last Synced: 2024-08-01T06:21:06.883Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 35
- Watchers: 20
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Logs Tail
Docker Logs Tail simultaneously tails logs for all running Docker containers, interleaving them in the command line output.
Requires node v6.0.0 or later.
## Installation
```
npm install -g docker-logs-tail
```## Usage
Type `dlt` to see the last 10 lines of logs, with new logs entries being displayed as they occur:
```
dlt
```You can specify the number of previous lines to show with the `-n` option:
```
dlt -n 100
``````
dlt -n 0
```Terminal colors in the output can be disabled with `--no-color`:
```
dlt --no-color
```Docker container names can be optionally excluded or specifically included. Matching is case-insensitive and supports wildcard:
```
# Include "registrator" and anything starting with "consul":
dlt --include 'registrator,consul*'# Exclude anything with "sql" in the name, including differently cased "MySQL":
dlt --exclude '*sql*'
```## Copyright and license
Copyright 2016 Zendesk, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.