Does logstash support input file rename?


(Jason Zheng) #1

Hi All,

I have a question, when I setting input file of logstash.conf as following
input {
file {
path => "/data/logs/count/*"
}
}

STEP 1. I put mesaage #1 to output1.log
STEP 2. I rename output1.log to output2.log (same inode number)
STEP 3. I put message #2 to output2.log

But the reslut is message #1 has been written by twice, #2 one time,
except result should be message #1 one time and #2 one time

Does logstash support input file rename?


(system) #2