Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

acquia/sumologic-example

Example Sumo Logic integration on Docker/Aptible

Installation and Usage

git clone https://github.com/nickveenhof/docker-sumologic-example
cd docker-sumologic-example/
export SUMO_ACCESS_ID=ACCESSIDHERE
export SUMO_ACCESS_KEY=ACCESSKEYHERE
export SUMO_COLLECTOR_NAME=MyCollector
export SUMO_MEMORY=256MB
make build
make run

Pre-build docker file

You can use

nickveenhof/aws-syslog

This Docker build is hosted in the docker registry (https://registry.hub.docker.com/u/nickveenhof/aws-syslog/). If you want to run this in ECS you need the following configuration. Make sure your Container host has its sumo-sources.json file in the /var/app/current/acquia folder. Make also sure that the environment variables are set.

{
  "AWSEBDockerrunVersion": "2",
  "volumes": [
    {
      "name": "sumologic-sources",
      "host": {
        "sourcePath": "/var/app/current/acquia"
      }
    }
  ],
  "containerDefinitions": [
    {
      "name": "sumologic",
      "image": "nickveenhof/aws-syslog",
      "essential": true,
      "memory": 256,
      "portMappings": [
        {
          "hostPort": 25515,
          "containerPort": 514
        }
      ],
      "mountPoints": [
        {
          "sourceVolume": "sumologic-sources",
          "containerPath": "/etc/acquia",
          "readOnly": true
        }
      ]
    }
  ]
}

Then, set the following ENV variables, you can do this in Elastic Beanstalk or locally via the -e flag when running Docker yourself. You can generate the access ID and access key by following these instructions.. You can generate the access ID and access key by following these instructions.

Environment Variable Description
SUMO_ACCESS_ID Sumo Logic Access ID
SUMO_ACCESS_KEY Sumo Logic Access Key
SUMO_COLLECTOR_NAME Helpful Name for Logs
SUMO_SOURCES_JSON Sources file to use
SUMO_MEMORY Amount of memory to use

How to build?

git clone git@github.com:acquia/docker-sumologic-example.git
docker build .
# Note the build ID and use it in the following command after -f. -f is to update the latest tag
docker tag -f 2ad2f5b6d0b1 nickveenhof/aws-syslog:latest
docker push nickveenhof/aws-syslog:latest

Copyright and License

MIT License, see LICENSE for details.

Derived from Aptible. Customized for Acquia.
Copyright (c) 2014 Aptible and contributors.

Docker Pull Command
Owner
nickveenhof