Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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