Hi
First of all, sorry for my poor english, I will try to explain my problem as better as I can.
I have just begun to use logstash + elasticsearch and I have a problem with file input.
Each program is running in a virtual machine (CentOS7) and everything work except when i must load logs from a file!
Data are perfectly processed by logstash and stored by elasticsearch when I insert them manually, or also when logstash is listening for TCP and UDP event.
This is the simple program that I'm using as test
input {
file {
path => "/tmp/tutorial.log"
start_position => beginning
}
}
filter {
grok { match => { "message" => "%{COMBINEDAPACHELOG}"} }
geoip { source => "clientip" }
}
output {
elasticsearch { hosts => "192.168.122.243:9200"}
stdout { codec => rubydebug }
}
The result is the follow:
Settings: Default pipeline workers: 1
Logstash startup completed
Nothing else, I have alredy try to use the --debug option but nothing, all looks fine
The file exist and is in the correct folder. As a test, I have write a similar code but using stdinput {} and I lunch the program using the follow command and it works, all the data are normalized and stored in the database!
cat /tmp/tutorial.log | bin/logstash -f test.conf
Thanks in advance for your help.
Giulio