Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove port config setting and improve documentation #17

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/logstash/inputs/elasticsearch.rb
Expand Up @@ -32,11 +32,10 @@ class LogStash::Inputs::Elasticsearch < LogStash::Inputs::Base
default :codec, "json"

# List of elasticsearch hosts to use for querying.
# each host can be either IP, HOST, IP:port or HOST:port
# port defaults to 9200
config :hosts, :validate => :array

# The HTTP port of your Elasticsearch server's REST interface.
config :port, :validate => :number, :default => 9200

# The index or alias to search.
config :index, :validate => :string, :default => "logstash-*"

Expand Down Expand Up @@ -68,7 +67,7 @@ class LogStash::Inputs::Elasticsearch < LogStash::Inputs::Base
# [source, ruby]
# input {
# elasticsearch {
# host => "es.production.mysite.org"
# hosts => "es.production.mysite.org"
# index => "mydata-2018.09.*"
# query => "*"
# size => 500
Expand Down