https://github.com/graze/docker-sumo-collectors
Sumo logic collectors
https://github.com/graze/docker-sumo-collectors
collector docker docker-image sumologic-collectors
Last synced: 2 months ago
JSON representation
Sumo logic collectors
- Host: GitHub
- URL: https://github.com/graze/docker-sumo-collectors
- Owner: graze
- License: mit
- Created: 2016-12-19T11:50:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-05T09:49:27.000Z (about 9 years ago)
- Last Synced: 2025-01-18T11:23:52.445Z (over 1 year ago)
- Topics: collector, docker, docker-image, sumologic-collectors
- Size: 5.86 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sumologic Collector Templates

A set of sumologic collectors using templates
## Why?
The default set of sumologic collectors put all the logs within a single category or use a generated name so un-referencable (boo). This provides a set of templates that uses the environment variable: `LOG_APPLICATION` in the collector name and category
Environment Variables:
- `LOG_APPLICATION` - name of the application to appear in the name / category
- `ENVIRONMENT` - the environment of the logs (live,stage,dev,etc)
## Collectors
### Apache
image: `graze/sumo-collectors:apache`
The apache collector looks at: `/var/log/apache2/*_access.log` files and uses the category: `apache/${LOG_APPLICATION}/${ENVIRONMENT}`
It also looks at: `/var/log/apache2/error.log` and reports it as: `app/${LOG_APPLICATION}/${ENVIRONMENT}`
### Docker
image: `graze/sumo-collectors:docker`
The docker collector connects to the docker sock on the host machine and reports logs and stats to sumologic.
- logs -> category: `docker/logs/${LOG_APPLICATION}/${ENVIRONMENT}`
- stats -> category: `docker/stats/${LOG_APPLICATION}/${ENVIRONMENT}`
#### Docker logs
image: `graze/sumo-collectors:docker-logs`
A logs only collector for docker (does not send that stats stream to reduce the amount of log messages being sent)
- logs -> category: `docker/logs/${LOG_APPLICATION}/${ENVIRONMENT}`
### File
image: `graze/sumo-collectors:file`
The file collector recursively looks at a directory and sends all the log files with category: `logs/${LOG_APPLICATION}/${ENVIRONMENT}`