I have simple logs in the format:
<[package.filename]>
The problem I faced is that the Logfile sometimes fails to get uploaded and i have to make changes in the file to get it uploaded. Moreover capital letters are not allowed in naming of indexes which I'm not sure why.
The content of the script file I used:
input {
file {
path => ["D:\logs\Log1.txt"]
start_position => "beginning"
type=> "log"
}
}
The problem I faced is that the Logfile sometimes fails to get uploaded and i have to make changes in the file to get it uploaded.
Logstash remembers how far it has processed a file so if you need to reprocess a file you must clear its sincedb entry or set the file input's sincedb_path option to "nul" (WIndows) or "/dev/null" (non-Windows). See the file input documentation.
Thanks for the reply.
I just want to know that if I delete all the sincedb files will it make any difference apart from reparsing the log files again when I run logstash?
Thanks for the help but I'm facing another issue i.e. the log file needs to be modified a little(anything like a simple newline or deleting a line) and only then does Logstash upload it.
Any help regarding this?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.