0

i trying to configure metricbeat data collection with date wise pattern and tired to rotate the metricbeat logs and made changes in metricbeat.ym in output.elasticsearch: session the changes are indices: - index: "warning-%{[agent.version]}-%{+yyyy.MM.dd}" when.contains: message: "WARN" - index: "error-%{[agent.version]}-%{+yyyy.MM.dd}" when.contains: message: "ERR" and for log rotation i made changes are- logging.level: debug logging.to_files: true logging.files: path: /var/log/metricbeat/logsmetricbeat name: metricbeat.log keepfiles: 10

0 Answers0