Issue redirecting output to Elasticsearch


(shriyansh jain) #1

Hey,

I am using losgstash 1.4.2 and Elasticsearch 1.2.2. I am trying to output
my logs on Elasticsearch cluster which is running on different machine from
logstash server. The issue is my logs are not able to reach to
ealsticsearch instance. Though I am able to get my logs in redis.
What can be possible issue I should look for to solve the problem. I have
not defined any elasticsearch indices, do i have to define the indexes
explicitly.

Following is my logstash server configuration file

input {
redis {
host => "xx.xx.xx.xx"
type => "redis-input"
data_type => "list"
key => "logstash"
}
redis {
host => "xx.xx.xx.xx"
type => "redis-input"
data_type => "list"
key => "logstash"
}

}

filter {
date {
match =>
["timestamp_nsstats",%{YEAR}-%{MONTHNUM}-%{MONTHDAY}[,]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?"]
}
}

output {
stdout { }
elasticsearch {
cluster => "logstash"
host => "xx.xx.xx.xx"
protocol => http
port => "9200"
}
}

Any input will really help.

Thank you,
Shriyansh

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/51fff7eb-e0b9-4d43-b2a1-6d695b9de51e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2