I am using ELK GA 5.0.0. In my Linux box, I am pushing
vmstat entries to a file using the following shell script;
#!/bin/bash while true do >vmstatlog.log echo "`vmstat`"$'\n' >> vmstatlog.log sleep 2 done
The script is designed to empty the contents of the file
vmstatlog.log and then writes to it. In this way, the file keeps only latest entry. But the problem is, my filebeat takes only one entry, after that no output is sent by filebeat. I checked the file and found that it gets updated every time. Whats wrong here, and how can I fix this?