Created
August 27, 2016 12:38
-
-
Save babakc/cffce532d36a220bf6bf90b3c4feb563 to your computer and use it in GitHub Desktop.
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
{ | |
"EngineConfiguration": { | |
"PollInterval": "00:00:15", | |
"Components": [ | |
{ | |
"Id": "ApplicationEventLog", | |
"FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"LogName": "Application", | |
"Levels": "7" | |
} | |
}, | |
{ | |
"Id": "SystemEventLog", | |
"FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"LogName": "System", | |
"Levels": "7" | |
} | |
}, | |
{ | |
"Id": "DSCLog", | |
"FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"LogName": "Microsoft-Windows-DSC/Operational", | |
"Levels": "7" | |
} | |
}, | |
{ | |
"Id": "cfninitLog", | |
"FullName": "AWS.EC2.Windows.CloudWatch.CustomLog.CustomLogInputComponent,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"LogDirectoryPath": "C:\\cfn\\log", | |
"TimestampFormat": "yyyy-MM-dd HH:mm:ss,fff", | |
"Encoding": "UTF-8", | |
"Filter": "cfn-init.log", | |
"CultureName": "en-US", | |
"TimeZoneKind": "Local" | |
} | |
}, | |
{ | |
"Id": "EC2ConfigLog", | |
"FullName": "AWS.EC2.Windows.CloudWatch.CustomLog.CustomLogInputComponent,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"LogDirectoryPath": "C:\\Program Files\\Amazon\\Ec2ConfigService\\Logs", | |
"TimestampFormat": "yyyy-MM-ddTHH:mm:ss.fffZ:", | |
"Encoding": "UTF-8", | |
"Filter": "EC2ConfigLog.txt", | |
"CultureName": "en-US", | |
"TimeZoneKind": "UTC" | |
} | |
}, | |
{ | |
"Id": "CloudWatchEventLogs", | |
"FullName": "AWS.EC2.Windows.CloudWatch.CloudWatchLogsOutput,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"AccessKey": "", | |
"SecretKey": "", | |
"Region": "ap-southeast-2", | |
"LogGroup": "Event-Log-Group", | |
"LogStream": "{instance_id}" | |
} | |
}, | |
{ | |
"Id": "cfninitLogs", | |
"FullName": "AWS.EC2.Windows.CloudWatch.CloudWatchLogsOutput,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"AccessKey": "", | |
"SecretKey": "", | |
"Region": "ap-southeast-2", | |
"LogGroup": "cfninit-Log-Group", | |
"LogStream": "{instance_id}" | |
} | |
}, | |
{ | |
"Id": "EC2ConfigLogs", | |
"FullName": "AWS.EC2.Windows.CloudWatch.CloudWatchLogsOutput,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"AccessKey": "", | |
"SecretKey": "", | |
"Region": "ap-southeast-2", | |
"LogGroup": "EC2Config-Log-Group", | |
"LogStream": "{instance_id}" | |
} | |
} | |
], | |
"Flows": { | |
"Flows": [ | |
"(ApplicationEventLog,SystemEventLog,DSCLog),CloudWatchEventLogs", | |
"EC2ConfigLog,EC2ConfigLogs", | |
"cfninitLog,cfninitLogs" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment