Измените http_port номер Elasticsearch на 80 - PullRequest
0 голосов
/ 10 мая 2019

Я пытаюсь настроить ELK в Ubuntu 18.04, и на данный момент у меня есть только порт 80 для тестирования панели инструментов Elasticsearch, поэтому я изменилasticsearch.yml, как показано ниже

# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: x.x.x.x
#
# Set a custom port for HTTP:
#
http.port: 80
#
# For more information, consult the network module documentation.
#

Но в logstash логах написано

[2019-05-10T08:46:01,216][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://x.x.x.x:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://x.x.x.x:9200/][Manticore::SocketException] Connection refused (Connection refused)"}

Я думаю, что он пытается найти эластичный поиск на 9200 ..

Любая помощь в этом будет оценена

1 Ответ

0 голосов
/ 10 мая 2019

Вам нужно отредактировать выходной порт logstash, вы можете посмотреть его здесь .

input { stdin { } }

filter {
  grok {
    match => { "message" => "%{COMBINEDAPACHELOG}" }
  }
  date {
    match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
  }
}

output {
  elasticsearch { hosts => ["localhost:9200"] }  <-- change this
  stdout { codec => rubydebug }
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...