AWS CloudWatch Log 因“logevent 中缺少 multilineStarter”而受到困扰

AWS CloudWatch Log 因“logevent 中缺少 multilineStarter”而受到困扰

我已经在我的一个实例(Windows)上安装了AWS CloudWatch Agent,并且在代理日志文件中收到此消息:

2019-04-14T16:10:53Z W!logevent 中缺少 multilineStarter。multilineStarter:true

它正在对日志文件进行重击——每秒我得到大约 700 行重复的内容!

我在 Google 上搜索了“multilineStarter”,没有找到任何结果。为什么我的日志文件里只有我一个人有这个?哈哈。

一些细节:

Windows Server 2016 CloudWatch 代理:“版本”:“1.210825.0”我的配置:

{
"logs": {
    "logs_collected": {
        "windows_events": {
            "collect_list": [
                {
                    "event_format": "xml",
                    "event_levels": [
                        "WARNING",
                        "ERROR",
                        "CRITICAL"
                    ],
                    "event_name": "System",
                    "log_group_name": "System",
                    "log_stream_name": "{instance_id}"
                },
                {
                    "event_format": "xml",
                    "event_levels": [
                        "WARNING",
                        "ERROR",
                        "CRITICAL"
                    ],
                    "event_name": "Application",
                    "log_group_name": "Application",
                    "log_stream_name": "{instance_id}"
                }
            ]
        }
    }
},
"metrics": {
    "append_dimensions": {
        "AutoScalingGroupName": "${aws:AutoScalingGroupName}",
        "ImageId": "${aws:ImageId}",
        "InstanceId": "${aws:InstanceId}",
        "InstanceType": "${aws:InstanceType}"
    },
    "metrics_collected": {
        "LogicalDisk": {
            "measurement": [
                "% Free Space"
            ],
            "metrics_collection_interval": 60,
            "resources": [
                "*"
            ]
        },
        "Memory": {
            "measurement": [
                "% Committed Bytes In Use"
            ],
            "metrics_collection_interval": 60
        },
        "Paging File": {
            "measurement": [
                "% Usage"
            ],
            "metrics_collection_interval": 60,
            "resources": [
                "*"
            ]
        },
        "PhysicalDisk": {
            "measurement": [
                "% Disk Time"
            ],
            "metrics_collection_interval": 60,
            "resources": [
                "*"
            ]
        },
        "Processor": {
            "measurement": [
                "% User Time",
                "% Idle Time",
                "% Interrupt Time"
            ],
            "metrics_collection_interval": 60,
            "resources": [
                "_Total"
            ]
        },
        "statsd": {
            "metrics_aggregation_interval": 60,
            "metrics_collection_interval": 30,
            "service_address": ":8125"
        }
    }
}

}

当服务启动时,我在日志中看到以下内容:

    2019/04/14 12:10:52 I! Config has been translated into TOML C:\ProgramData\Amazon\AmazonCloudWatchAgent\\amazon-cloudwatch-agent.toml 
2019-04-14T16:10:53Z I! cloudwatch: get unique roll up list []
2019-04-14T16:10:53Z I! Starting AmazonCloudWatchAgent (version 1.210825.0)
2019-04-14T16:10:53Z I! Loaded outputs: cloudwatch cloudwatchlogs
2019-04-14T16:10:53Z I! cloudwatch: publish with ForceFlushInterval: 1m0s, Publish Jitter: 22s
2019-04-14T16:10:53Z I! Loaded inputs: win_perf_counters windows_event_log statsd
2019-04-14T16:10:53Z I! Tags enabled: host=XXXXXX
2019-04-14T16:10:53Z I! Agent Config: Interval:1m0s, Quiet:false, Hostname:"XXXXXX", Flush Interval:1s 
2019-04-14T16:10:53Z I! Started the statsd service on :8125
2019-04-14T16:10:53Z I! Reading from offset 56351 in Amazon_CloudWatch_WindowsEventLog_Application
2019-04-14T16:10:53Z I! Reading from offset 62594 in Amazon_CloudWatch_WindowsEventLog_System
2019-04-14T16:10:53Z I! Statsd listener listening on:  [::]:8125
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true
2019-04-14T16:10:53Z W! multilineStarter is missing in logevent. multilineStarter: true

有人对此有什么想法吗?

谢谢

相关内容