Hi,
I'm trying to do this . But when i wrote all configurations and restart logstash. This error appears "Configuration error. Not restarting. Re-run with configtest parameter for details" .
I tryied to find out this error step by step. Then i figure it out it's about my output configuration.
I'm using digitalocean droplet with elk logging stack so it all set up already. I'm just trying to implement twitter configuration. I need help.
this is my default output conf output { elasticsearch { hosts => ["localhost:9200"] sniffing => true manage_template => false index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}" document_type => "%{[@metadata][type]}" } }
It sounds like you didn't replace /path/to with the actual path to the Logstash binary (probably /opt/logstash/bin) and the path to your configuration file (probably /etc/logstash/conf.d).
Your command should have the form /path/to/logstash --configtest -f /path/to/configfile, with /path/to replaced by the actual paths to the Logstash binary and your configuration file.
I get this root@client:/opt/logstash/bin# /opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/30-elasticsearch-output.conf Connection refused {:class=>"Manticore::SocketException", :level=>:error} Connection refused {:class=>"Manticore::SocketException", :level=>:error} Configuration OK
this is my output conf output { stdout { codec => dots } elasticsearch { hosts => "localhost" index => "twitter" document_type => "tweet" template => "twitter_template.json" template_name => "twitter" } }
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.