Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taimos/fluentd-sumologic
Dockerimage for SumoLogic logging
https://github.com/taimos/fluentd-sumologic
Last synced: 8 days ago
JSON representation
Dockerimage for SumoLogic logging
- Host: GitHub
- URL: https://github.com/taimos/fluentd-sumologic
- Owner: taimos
- Created: 2016-12-26T22:06:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T09:14:29.000Z (over 2 years ago)
- Last Synced: 2024-04-14T05:52:53.486Z (7 months ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Logging docker to SumoLogic
## Create SumoLogic HTTP Collector
Create a new SumoLogic HTTP Collector and note the URL generated to send logs.
## Run Collector container
Build and run this image and expose the port 24224.
You have to export the endpoint and urltoken as environment variables
```
docker run --restart=always -p 24224:24224 --name sumologic -e SUMO_COLLECTOR=endpoint1.collection.eu.sumologic.com -e SUMO_URLTOKEN=SOMEBASE64STRING taimos/fluentd-sumologic
```## Run application container
You can now start your primary docker container with the following options:
```
docker run --log-driver fluentd --log-opt labels=app --label app=mysuper-server some-image:latest
```This will log the Docker output to SumoLogic with _sourceName mysuper-server and the category you created with the HTTP collector