Sign inSign up

nickveenhof/aws-syslog

By nickveenhof

•Updated almost 11 years ago

Image
0

10K+

nickveenhof/aws-syslog repository overview

⁠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 VariableDescription
SUMO_ACCESS_IDSumo Logic Access ID
SUMO_ACCESS_KEYSumo Logic Access Key
SUMO_COLLECTOR_NAMEHelpful Name for Logs
SUMO_SOURCES_JSONSources file to use
SUMO_MEMORYAmount of memory to use

⁠How to build?

git clone [email protected]: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

MIT License, see LICENSE⁠ for details.

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

Tag summary

Content type

Image

Digest

sha256:e13099895…

Size

244.8 MB

Last updated

almost 11 years ago

docker pull nickveenhof/aws-syslog