https://github.com/rafalwilinski/logmatic-docker-bash
🚂 Logmatic-Docker alternative written in pure bash
https://github.com/rafalwilinski/logmatic-docker-bash
docker logging metric metrics
Last synced: about 2 months ago
JSON representation
🚂 Logmatic-Docker alternative written in pure bash
- Host: GitHub
- URL: https://github.com/rafalwilinski/logmatic-docker-bash
- Owner: RafalWilinski
- Created: 2016-08-13T20:28:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-14T14:11:32.000Z (almost 10 years ago)
- Last Synced: 2026-02-20T07:41:04.908Z (4 months ago)
- Topics: docker, logging, metric, metrics
- Language: Shell
- Homepage: http://rwilinski.me
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# logmatic-docker-bash
An alternative to `logmatic-docker` which heavily relies on Node.js and causes hiccups on some clusters for no apparent reason.
Tested only on OS X, might need a little for work for other unix distros.
# Usage
```
git clone https://github.com/RafalWilinski/logmatic-docker-bash
cd logmatic-docker-bash
chmod a+x ./logmatic.sh
./logmatic.sh -e -a
```
# Parsing data
In order to make any use of incoming data, first you have to enable proper parsing options inside Logmatic console. In order to do that, head to Logmatic Console -> Settings -> Enrichment & Parsing -> ENABLE Key/Value
# Options
Several options are allowed after/before the api key.
```
> ./logmatic.sh -a [apiKey]
[-e] (Enable sending events)
[-h HOSTNAME (default "api.logmatic.io")] [-p PORT (default "10514")]
[-s SECONDS (default 10s)]
```
# What are the data types sent to Logmatic.io?
Scripts sends 3 things:
- [x] the log data published by your containers
- [x] the docker events (e.g. `kill`, `start` `detach`, `die`)
- [ ] docker statistics (e.g cpu usage, mem usage, i/o count)
## License
[MIT License](https://opensource.org/licenses/MIT) © Rafal Wilinski