CloudWatch Agent - "Error : Additional property statsd is not allowed"

0

OS: Win 2012 R2 version 6.3 (Build 9600)
EC2Config version: 4.9.3429
SSM version: v2.3.542.0
CloudWatch Agent version: version 1.201929.0

Hello,

I recently installed CloudWatch Agent to be able to send EventViewer logs to CloudWatch Logs.
My problem is with two particular servers which both run the exact same versions (see above) as two other servers that are able to send logs to Cloudwatch Agents.

When I run the CloudWatch Agent wizard on the problematic servers I don't get a prompt to initialize "statsd" whereas on the two other servers I get that question in the wizard.

The actual error I encounter when trying to initiate the Agent is this;

Start configuration validation...
Invalid Json input schema.
Under path : /metrics/metrics_collected/statsd | Error : measurement is required
Under path : /metrics/metrics_collected | Error : Additional property statsd is not allowed
2019/05/27 07:22:51 I! AmazonCloudWatchAgent Version 1.201929.0.
Configuration validation first phase failed. Agent version: 1.201929.0. Verify the JSON input is only using features supported by this version.

The parameter store document I am trying to fetch is this;

{
	"logs": {
		"logs_collected": {
			"windows_events": {
				"collect_list": [{
					"event_format": "xml",
					"event_levels": ["WARNING", "ERROR", "CRITICAL"],
					"event_name": "Application",
					"log_group_name": "myloggroup",
					"log_stream_name": "{local_hostname}-Application"
				}, {
					"event_format": "xml",
					"event_levels": ["WARNING", "ERROR", "CRITICAL"],
					"event_name": "Security",
					"log_group_name": "myloggroup",
					"log_stream_name": "{local_hostname}-Security"
				}, {
					"event_format": "xml",
					"event_levels": ["WARNING", "ERROR", "CRITICAL"],
					"event_name": "Setup",
					"log_group_name": "myloggroup",
					"log_stream_name": "{local_hostname}-Setup"
				}, {
					"event_format": "xml",
					"event_levels": ["WARNING", "ERROR", "CRITICAL"],
					"event_name": "System",
					"log_group_name": "myloggroup",
					"log_stream_name": "{local_hostname}-System"
				}]
			}
		}
	},
	"metrics": {
		"namespace": "MyNamespace/Monitoring",
		"metrics_collected": {
			"Processor": {
				"metrics_collection_interval": 300,
				"measurement": ["% Processor Time"],
				"resources": ["*"]
			},
			"LogicalDisk": {
				"metrics_collection_interval": 1200,
				"measurement": ["% Free Space"],
				"resources": ["*"]
			},
			"Memory": {
				"metrics_collection_interval": 300,
				"measurement": ["% Committed Bytes In Use"],
				"resources": ["*"]
			},
			"statsd": {
				"metrics_aggregation_interval": 60,
				"metrics_collection_interval": 10,
				"service_address": ":8125"
			}
		}
	}
}

The exact same SSM parameter successfully runs on the other two servers that have identical versions of EC2Config, SSM and Cloudwatch Agent (as well as the exact same build of the OS).

What am I missing?

Grateful for your input - TheSwede86

질문됨 5년 전1779회 조회
2개 답변
0
수락된 답변

It seems that you need to upgrade the agent. The statsd support is only available on 1.203420.0 or later.

You can check the release notes.

Amazon CloudWatch Agent 1.203420.0 (2018-09-28)

New Features and Enhancements:

답변함 5년 전
0

Thanks you are correct.

I downloaded the latest CloudWatch Agent BUT simply running the installer does not upgrade the current version; I needed to uninstall it manually and then install the latest version and then it worked.

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠