Created
November 9, 2015 16:56
-
-
Save nwhobart/0dfb26d6c8628624e510 to your computer and use it in GitHub Desktop.
Our ebextension for sumologic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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