Right, so I've made hosts an array like you said. I must say here that I did not need to mention the hosts parameter when I was using Logstash-2.2.0 until two days ago. I'm surprised it is needed here.
I see the following on my console -
Settings: Default pipeline workers: 8
Pipeline main started
However, none of the logs are actually getting stashed after this as is supposed to happen. Pasting my config file again here below -
input {
file {
path => "/home/bits/Server_Code/TempLight.log"
type => "sample"
start_position => "beginning"
sincedb_path => "/home/bits/logstash-2.3.0/files"
}
}
filter {
grok { match => { "message" => "%{DAY:day}\s%{MONTH:month}\s%{MONTHDAY:monthday}\s%{YEAR:year}\s%{TIME:time}\sGMT(?[+-]\d\d\d\d)\s([^)]+)\s%{NUMBER:temp}\s%{NUMBER:light}\s%{GREEDYDATA:room}"} }
}
output {
elasticsearch {
index => "logstash-templightlogs"
hosts => ['172.25.3.31:9200']
}
stdout{}
}