Skip to content

Instantly share code, notes, and snippets.

@nwhobart
Created November 9, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nwhobart/0dfb26d6c8628624e510 to your computer and use it in GitHub Desktop.
Save nwhobart/0dfb26d6c8628624e510 to your computer and use it in GitHub Desktop.
Our ebextension for sumologic.
packages:
rpm:
SumoCollector: https://collectors.sumologic.com/rest/download/rpm/64
services:
sysvinit:
collector:
enabled: true
ensureRunning: true
files:
- /etc/sumo.conf
files:
"/etc/sumo.conf":
mode: "000755"
owner: root
group: root
source: https://s3.amazonaws.com/our-bucket-name/app_name.config
authentication: S3AccessCred
"/etc/sumo_sources.json":
mode: "000755"
owner: root
group: root
content: |
{
"api.version": "v1",
"sources": [
{
"sourceType" : "LocalFile",
"name": "Sidekiq",
"pathExpression": "/var/app/support/logs/sidekiq.log",
"category": "sidekiq",
"useAutolineMatching": false,
"multilineProcessingEnabled": true,
"timeZone": "UTC",
"automaticDateParsing": true
},
{
"sourceType": "LocalFile",
"name": "Passenger / RoR",
"pathExpression": "/var/app/support/logs/passenger.log",
"category": "rails",
"useAutolineMatching": false,
"multilineProcessingEnabled": true,
"timeZone": "UTC",
"automaticDateParsing": true
},
{
"sourceType": "LocalFile",
"name": "eb activity",
"pathExpression": "/var/log/eb-activity.log",
"category": "eb_activity",
"useAutolineMatching": false,
"multilineProcessingEnabled": true,
"timeZone": "UTC",
"automaticDateParsing": true
}
]
}
Resources:
AWSEBAutoScalingGroup:
Type: "AWS::AutoScaling::AutoScalingGroup"
Metadata:
AWS::CloudFormation::Authentication:
S3AccessCred:
type: "S3"
roleName: "our-aws-role-name"
buckets: "our-bucket-name"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment