Created
September 28, 2017 04:00
-
-
Save almoraes/4cf3ba9e125e96f25ff1313110923684 to your computer and use it in GitHub Desktop.
Cloud Watch Windows
This file contains hidden or 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": "PerformanceCounterDisk", | |
"FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"CategoryName": "LogicalDisk", | |
"CounterName": "% Free Space", | |
"InstanceName": "C:", | |
"MetricName": "FreeDiskPercentage", | |
"Unit": "Percent", | |
"DimensionName": "InstanceId", | |
"DimensionValue": "{instance_id}" | |
} | |
}, | |
{ | |
"Id": "PerformanceCounterDisk", | |
"FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"CategoryName": "LogicalDisk", | |
"CounterName": "% Free Space", | |
"InstanceName": "D:", | |
"MetricName": "FreeDiskPercentage", | |
"Unit": "Percent", | |
"DimensionName": "InstanceId", | |
"DimensionValue": "{instance_id}" | |
} | |
}, | |
{ | |
"Id": "PerformanceCounterDisk", | |
"FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch", | |
"Parameters": { | |
"CategoryName": "LogicalDisk", | |
"CounterName": "% Free Space", | |
"InstanceName": "H:", | |
"MetricName": "FreeDiskPercentage", | |
"Unit": "Percent", | |
"DimensionName": "InstanceId", | |
"DimensionValue": "{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