Logstash 1.5.4 hangs@Logstash startup completed


(Sriram Narayanan) #1

I am trying to post my log details via logstash. This is how my filter looks

input {
file {
path =>"/opt/projects/logs/Marketplace.log"
start_position => "beginning"
}
}

filter {
grok {
match => [ "message", "%{DATE_US:date} %{TIME:time} %{LOGLEVEL:logger} Method Details: %{DATA:message}"]

}
}

output {
stdout { }
elasticsearch{
action => index
host => "xxx.yyy.net"
index => myIndex
protocol => "http"
}

LogStash configtest is OK. Yet I dont see any output on the console or elastic search server. What could be wrong?

Thanks,
Sriram


(Magnus B├Ąck) #2

Logstash is probably waiting for additional data to be added to Marketplace.log. start_position => "beginning" only matters when the file is completely unknown to Logstash. I'm guessing that isn't the case since you've started Logstash with that file as input at least once before.

(This question is unrelated to logstash-forwarder, so I suggest you edit your post and change its category to Logstash.)


(system) #3