Code Monkey home page Code Monkey logo

Comments (8)

ph avatar ph commented on July 21, 2024

Oh this error isn't in a human friendly format and so confusing we should definitely give some love and improve it :(

A few questions:

  • Is your Elasticsearch backend require an https connection?
  • did you use the ssl => true in your configuration?
  • Would you mind copy your configuration?

from logstash-output-elasticsearch.

andrewlove avatar andrewlove commented on July 21, 2024

My elasticsearch doesn't use SSL I believe (it is a default install)
Here is my output config for logstash:

output {
  # Send to Elastic Search
  elasticsearch {
    bind_host => "mypc.local"
    host => "mypc.local"
    cluster => "elasticsearch-mypc"
    index => "logstash-%{+YYYY.MM.dd}"
    port => "9200"
    ssl => false
    protocol => "http"
    idle_flush_time => 5
    manage_template => false
  }

from logstash-output-elasticsearch.

ph avatar ph commented on July 21, 2024

@andrewlove
I think some options are competing in the config, the cluster and the host? (not an excuse to give user a better error)

output {
  # Send to Elastic Search
  elasticsearch {
    host => "mypc.local"
    protocol => "http"
    idle_flush_time => 5
  }
}

You could also use the local IP (127.0.0.1) if mypc.local isn't reachable?

from logstash-output-elasticsearch.

ph avatar ph commented on July 21, 2024

@andrewlove Are you running logstash on a windows machine?

from logstash-output-elasticsearch.

andrewlove avatar andrewlove commented on July 21, 2024

I'm running on Ubuntu 14.10.
I'll try your minimal config out.
Many thanks

from logstash-output-elasticsearch.

jsvd avatar jsvd commented on July 21, 2024

@andrewlove strange, I just tried logstash 1.5.0.rc2 w/ elasticsearch 1.4.4 and the following config:

input {
  stdin {
  }
}

output {
  elasticsearch {
    bind_host => "localhost"
      host => "localhost"
      cluster => "clusterdojoao"
      index => "logstash-%{+YYYY.MM.dd}"
      port => "9200"
      ssl => false
      protocol => "http"
      idle_flush_time => 5
      manage_template => false
  }
}

And I was able to index a document correctly without that error...can you provide any other information, like a full logstash run with --debug?

from logstash-output-elasticsearch.

jsvd avatar jsvd commented on July 21, 2024

@andrewlove are you still having issues with this?

from logstash-output-elasticsearch.

untergeek avatar untergeek commented on July 21, 2024

Closing. There have been numerous improvements which should hopefully have taken care of this.

If not, feel free to open a new ticket, and/or re-open this one.

from logstash-output-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.