· 8 years ago · Jan 21, 2018, 02:44 PM
1{
2 "IsEnabled": false,
3 "EngineConfiguration": {
4 "PollInterval": "00:00:15",
5 "Components": [
6 {
7 "Id": "ApplicationEventLog",
8 "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch",
9 "Parameters": {
10 "LogName": "Application",
11 "Levels": "1"
12 }
13 },
14 {
15 "Id": "SystemEventLog",
16 "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch",
17 "Parameters": {
18 "LogName": "System",
19 "Levels": "7"
20 }
21 },
22 {
23 "Id": "SecurityEventLog",
24 "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch",
25 "Parameters": {
26 "LogName": "Security",
27 "Levels": "7"
28 }
29 },
30 {
31 "Id": "ETW",
32 "FullName": "AWS.EC2.Windows.CloudWatch.EventLog.EventLogInputComponent,AWS.EC2.Windows.CloudWatch",
33 "Parameters": {
34 "LogName": "Microsoft-Windows-WinINet/Analytic",
35 "Levels": "7"
36 }
37 },
38 {
39 "Id": "IISLogs",
40 "FullName": "AWS.EC2.Windows.CloudWatch.CustomLog.CustomLogInputComponent,AWS.EC2.Windows.CloudWatch",
41 "Parameters": {
42 "LogDirectoryPath": "C:\\inetpub\\logs\\LogFiles\\W3SVC1",
43 "TimestampFormat": "yyyy-MM-dd HH:mm:ss",
44 "Encoding": "UTF-8",
45 "Filter": "",
46 "CultureName": "en-US",
47 "TimeZoneKind": "UTC",
48 "LineCount": "3"
49 }
50 },
51 {
52 "Id": "CustomLogs",
53 "FullName": "AWS.EC2.Windows.CloudWatch.CustomLog.CustomLogInputComponent,AWS.EC2.Windows.CloudWatch",
54 "Parameters": {
55 "LogDirectoryPath": "C:\\CustomLogs\\",
56 "TimestampFormat": "MM/dd/yyyy HH:mm:ss",
57 "Encoding": "UTF-8",
58 "Filter": "",
59 "CultureName": "en-US",
60 "TimeZoneKind": "Local"
61 }
62 },
63 {
64 "Id": "PerformanceCounterMemory",
65 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
66 "Parameters": {
67 "CategoryName": "Memory",
68 "CounterName": "Available MBytes",
69 "InstanceName": "",
70 "MetricName": "AvailableMemory",
71 "Unit": "Megabytes",
72 "DimensionName": "InstanceId",
73 "DimensionValue": "{instance_id}"
74 }
75 },
76 {
77 "Id": "PerformanceCounterDiskPercentage",
78 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
79 "Parameters": {
80 "CategoryName": "LogicalDisk",
81 "CounterName": "% Free Space",
82 "InstanceName": "C:",
83 "MetricName": "FreeDiskPercentage",
84 "Unit": "Percent",
85 "DimensionName": "InstanceId",
86 "DimensionValue": "{instance_id}"
87 }
88 },
89 {
90 "Id": "PerformanceCounterDiskSpaceFree",
91 "FullName": "AWS.EC2.Windows.CloudWatch.PerformanceCounterComponent.PerformanceCounterInputComponent,AWS.EC2.Windows.CloudWatch",
92 "Parameters": {
93 "CategoryName": "LogicalDisk",
94 "CounterName": "Free Megabytes",
95 "InstanceName": "C:",
96 "MetricName": "FreeMegabytes",
97 "Unit": "Percent",
98 "DimensionName": "InstanceId",
99 "DimensionValue": "{instance_id}"
100 }
101 },
102 {
103 "Id": "CloudWatchLogs",
104 "FullName": "AWS.EC2.Windows.CloudWatch.CloudWatchLogsOutput,AWS.EC2.Windows.CloudWatch",
105 "Parameters": {
106 "AccessKey": "",
107 "SecretKey": "",
108 "Region": "us-east-1",
109 "LogGroup": "Default-Log-Group",
110 "LogStream": "{instance_id}"
111 }
112 },
113 {
114 "Id": "CloudWatch",
115 "FullName": "AWS.EC2.Windows.CloudWatch.CloudWatch.CloudWatchOutputComponent,AWS.EC2.Windows.CloudWatch",
116 "Parameters":
117 {
118 "AccessKey": "",
119 "SecretKey": "",
120 "Region": "us-east-1",
121 "NameSpace": "Windows/Default"
122 }
123 }
124 ],
125 "Flows": {
126 "Flows":
127 [
128 "(ApplicationEventLog,SystemEventLog),CloudWatchLogs",
129 "(PerformanceCounterMemory,PerformanceCounterDiskPercentage,PerformanceCounterDiskSpaceFree),CloudWatch"
130 ]
131 }
132 }
133}