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