Dear All,
I have log file having content
[29-Dec-2017 20:30:06] - ||CompanyID = 65
[30-Dec-2017 20:30:06] - ||CompanyID = 61
I am using output file plugin for storing logs to an output file as below
output {
file {
codec => line { format => "%{message}"}
path => "/Users/Satyaban/Development/ELKLogAnalysis/failedlog/failedoutput.log"
}
}
It stored above 2 lines of logs to failedoutput.log file but entries being duplicated continuously .
After sometime failedoutput.log file contained multiple lines above two lines of logs .
Kindly help how to prevent duplicate entries of logs in output file .
Current output log file ( failedoutput.log) contents are
[29-Dec-2017 20:30:06] - ||CompanyID = 65 # First Duplicate entries
[30-Dec-2017 20:30:06] - ||CompanyID = 61
[29-Dec-2017 20:30:06] - ||CompanyID = 65
[30-Dec-2017 20:30:06] - ||CompanyID = 61 # Second Duplicate entries
[29-Dec-2017 20:30:06] - ||CompanyID = 65
[30-Dec-2017 20:30:06] - ||CompanyID = 61 # Third Duplicate entries
[29-Dec-2017 20:30:06] - ||CompanyID = 65
[30-Dec-2017 20:30:06] - ||CompanyID = 61 # Fourth Duplicate entries
[29-Dec-2017 20:30:06] - ||CompanyID = 65
.......... ........................ so on
[30-Dec-2017 20:30:06] - ||CompanyID = 61