You normally could do this within Beats, e.g. Metricbeat.yml
# If enabled, Metricbeat periodically logs its internal metrics that have changed
# in the last period. For each metric that changed, the delta from the value at
# the beginning of the period is logged. Also, the total values for
# all non-zero internal metrics are logged on shutdown. The default is true.
logging.metrics.enabled: false
Ideally to get rid of log pollution without having to filter out.
Please note that since Agent encompasses different integrations , these settings may or may not be applicable and I believe this is why it's not at the policy level but at the integration level.
You can add them in the advanced configurations for the specific integration you are adding to the Policy and depending on the integration itself and if you use the available defaults you may need to look a bit under the hood to see the section for these type of settings.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.