AWS CloudWatch agent configuration

0

Looking through the AWS CloudWatch Agent repo on github, I've noticed two configuration options under the file section:

Regular expression for log files to ignore

blacklist = "journal|syslog"

Publish all log files that match file_path

publish_multi_logs = true

I would like to use those, but I'm concerned that these might be removed later on. Anyone out there using/knowing more about these?

Thanks

Link to the github repo:
https://github.com/aws/amazon-cloudwatch-agent/blob/39d84b8e3f5215a3e6d880b54a88e63a692ecd64/plugins/inputs/logfile/README.md

Link to the documentation:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html

Cipri
已提问 3 年前778 查看次数
1 回答
0
已接受的回答

The Link to the github repo:
https://github.com/aws/amazon-cloudwatch-agent/blob/39d84b8e3f5215a3e6d880b54a88e63a692ecd64/plugins/inputs/logfile/README.md

Is considered an open source for features you can use for the Cloudwatch Agent, as I have tested in my environment you should be able to exclude files using blacklist = "journal|syslog" and put logs from each log file in a separate log stream using publish_multi_logs = true.

As far as my knowledge this should not be disabled or removed, if you face any issues in the future regarding this feature reach AWS support.

Abboud
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则