Hi all,
Im trying to write the input data from input file to output file. I've put the below option in filebeats.yml file to copy the input to output.
output.file:
path: "/home/cloudera/Desktop"
filename: outB
But the problem is, for the first time I have one record "rec-1". When I run the filebeats, it is moving the records from input to output. My output file now contains: "rec-1"
But when enter another record in the input "rec-2", it is taking "rec-1, rec-2" from the input file and updating the output file. My output file now contains: "rec-1", "rec-1", "rec-2"
Can anyone tell me if there is any way to take just the latest updated records and put only those records in the output file ?
in mycase: my output file should have only: "rec-1","rec-2".
Thanks in advance.