We would like to be able to run some custom transformations on the metrics that are output and then write the transformed metrics to a different log file.
However we do not want the metrics output file to keep on growing on. We would like to be able to configure telegraf such that the output metric file gets rotated based on time or size
Is there some thing that can be configured to achieve the same?
We had run out of disk space a while back, at that time even after deleting the file the space occupied was not getting released. We had to restart the telegraf agent.
If we rotate the log file externally is there any chance that we may run into this disk space issue?
How would telegraf handle it if the file is all of sudden truncated by an external program?