Answer the question
In order to leave comments, you need to log in
Help setting up logstash+elasticsearch
I'm trying to set up logstash and elasticsearch according to this article . It seems that I am doing everything as described, but for some reason I cannot transfer from logstash to elasticsearch located on another server.
I will describe the course of my setup:
Machine A (192.168.56.101)
1. Downloaded the latest version of logstash (1.1.13):
sudo wget https://logstash.objects.dreamhost.com/release/logstash-1.1.13-flatjar.jar - O logstash.jar
2. Wrote a simple config (/etc/logstash/sample.conf):
input { file { type => "logs" path => "/var/log/iptables.log" } } output { elasticsearch { embedded => false type => "logs" cluster => "es_logs" host => "192.168.56.102" max_inflight_requests => 500 } }
sudo java -jar /opt/logstash/logstash.jar agent -v -f /etc/logstash/sample.conf
cluster: name: "es_logs"
./bin/elasticsearch
.
.
[2013-08-12 23:22:46,629][INFO ][node ] [Virgo] {0.20.2}[17620]: started
[2013-08-12 23:22:46,629][INFO ][gatway ] [Virgo] {0.20.2}[17620]: recovered [0] indicates into cluster_state
: message=>"Failed to index an event, will retry", :exception=>org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [1m]
Answer the question
In order to leave comments, you need to log in
Old question, but maybe someone will stumble upon.
Now logstash does not write to elastic if there are no lines in the latter in the config:
http.cors.allow-origin: "/.*/"
http.cors.enabled: true
after adding everything works.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question