Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

@rifhanakram
Last active September 9, 2018 06:23
Show Gist options
  • Save rifhanakram/11abb348f278c31b92e5b744addb9ff9 to your computer and use it in GitHub Desktop.
Save rifhanakram/11abb348f278c31b92e5b744addb9ff9 to your computer and use it in GitHub Desktop.
Cloudwatch agent config file with HTTPERR log shipping enabled
{
"metrics": {
"metrics_collected": {
"LogicalDisk": {
"measurement": [
"% Free Space"
],
"metrics_collection_interval": 60,
"resources": [
"*"
]
},
"Memory": {
"measurement": [
"% Committed Bytes In Use"
],
"metrics_collection_interval": 60
},
"Network Interface": {
"measurement": [
"Bytes Sent/sec",
"Bytes Received/sec",
"Packets Sent/sec",
"Packets Received/sec"
],
"metrics_collection_interval": 60,
"resources": [
"*"
]
},
"Paging File": {
"measurement": [
"% Usage"
],
"metrics_collection_interval": 60,
"resources": [
"*"
]
},
"PhysicalDisk": {
"measurement": [
"Disk Write Bytes/sec",
"Disk Read Bytes/sec",
"Disk Writes/sec",
"Disk Reads/sec"
],
"metrics_collection_interval": 60,
"resources": [
"*"
]
},
"Processor": {
"measurement": [
"% Processor Time"
],
"metrics_collection_interval": 60,
"resources": [
"*"
]
}
}
},
"logs":{
"logs_collected":{
"files":{
"collect_list":[
{
"file_path":"C:\\Windows\\System32\\LogFiles\\HTTPERR\\**.log",
"log_group_name":"/testApp/HTTPError-Logs",
"log_stream_name":"HTTPERRORS",
"timestamp_format":"%H:%M:%S %y %b %-d"
}
]
}
},
"log_stream_name":"testApp"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment