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
asked 3 years ago762 views
1 Answer
0
Accepted Answer

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
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions