How to generate new file per metricbeat event

How can I generate a new file for every new metricbeat event?

Below config creates a file named metricbeat and keeps appending data into it.

output.file:
enabled: true
path: "/tmp/metricbeat"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.