I read input from log file and write to kafka. even after log rotation, inode doesnt change. after log rotation, still reads rotated log file(xx.log.2020-xx-xx) instead of pointing to main file(xx.log).
Below is my config file setting for input file. Do I need to add any other config to ignore reading old files.
input {
file {
path => "C:/Users/xx.log"
}
}