cloudwatch; this new high performance CloudWatch plugin is called
cloudwatch_logsto prevent conflicts/confusion. Check the amazon repo for the Golang plugin for details on the deprecation/migration plan for the original plugin.
workerswhich enables outputs to have dedicated threads. This
cloudwatch_logsplugin has partial support for workers. The plugin can support a single worker; enabling multiple workers will lead to errors/indeterminate behavior.
application-logs-ip-10-1-128-166.us-east-2.compute.internal.my-namespace. And the log stream name will be
log_stream_prefixwill be used instead, and Fluent Bit will log an error like:
cloudwatch_logsoutput plugin can be used to send these host metrics to CloudWatch in Embedded Metric Format (EMF). If data comes from any of the above mentioned input plugins,
cloudwatch_logsoutput plugin will convert them to EMF format and sent to CloudWatch as JSON log. Additionally, if we set
json/emfas the value of
log_formatconfig option, CloudWatch will extract custom metrics from embedded JSON payload.
memmetrics can be sent to CloudWatch.
meminput plugin and sending memory usage metrics to CloudWatch, we can consider the following example config file. Here, we use the
awsfilter which adds
az(availability zone) to the log records. Later, in the output config section, we set
ec2_instance_idas our metric dimension.