Logstash is not reading the log file(that's being updated automatically) continuously

It cleans the old data and writes new data every time and that is what I did manually and got it to work.