mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- fix ES defaults
This commit is contained in:
parent
6bb6ed3cc0
commit
5d4cfd4bb7
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ require "logstash/search/facetresult/histogram"
|
|||
class LogStash::Search::ElasticSearch < LogStash::Search::Base
|
||||
public
|
||||
def initialize(settings={})
|
||||
@host = (settings[:host] || "localhost")
|
||||
@port = (settings[:port] || 9200).to_i
|
||||
@host = (settings[:host] || nil)
|
||||
@port = (settings[:port] || 9300).to_i
|
||||
@cluster = (settings[:cluster] || nil)
|
||||
@logger = LogStash::Logger.new(STDOUT)
|
||||
@client = ElasticSearch::Client.new(:host => @host, :port => @port, :cluster => @cluster)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue