Sign inSign up

kotowick/sumologic-collector

By kotowick

•Updated about 9 years ago

Combine sumo-source files from each Docker container specified and output to /tmp/sumo-sources.json

Image
0

10K+

kotowick/sumologic-collector repository overview

⁠docker-sumologic-collector

Summary:

Combine multiple `sumo-source json files` from each Docker container (specificied by `--volume-from`)
Output the combined-data to /tmp/sumo-sources.json.tmpl

This project is based off of the SumoLogic Collector image:

  - [Dockerhub](https://hub.docker.com/r/sumologic/collector/)
  - [GitHub](github.com/sumoLogic/sumologic-collector-docker/)

⁠Usage

For each image you want to integrate with this SumoLogic version, add the following to your Dockerfile:

RUN mkdir /tmp/sumo/YOUR_APP_NAME
ADD ./sumo-sources.json.tmpl /tmp/sumo/YOUR_APP_NAME
VOLUME /tmp/sumo/YOUR_APP_NAME

Sumo Source File

You can find SumoLogic Source example files here⁠. Inside a SumoSource file, you can either hard-code everything, or include ENV variables denoted by {} (see example). Sumo parses the json file and replaces all variables with the corresponding ENV values.

⁠Customization

1. git clone [email protected]:kotowick/docker-sumologic-collector.git # clone the repo
2. Modify the Dockerfile
3. docker build . -t YOUR_OWN_IMAGE:TAG # build the image

⁠Notes

  1. Container Scenarios⁠
  2. Usage Eamples⁠

Tag summary

Content type

Image

Digest

Size

254.3 MB

Last updated

about 9 years ago

docker pull kotowick/sumologic-collector:test-build