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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南