# Logstashのエラーについて

**URL:** https://discuss.elastic.co/t/logstash/191562
**Category:** 日本語による質問・議論はこちら
**Created:** [July 22, 2019, 3:36am UTC](https://discuss.elastic.co/t/logstash/191562 "2019-07-22T03:36:11Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)
#### Post date: [July 24, 2019, 2:20am UTC](https://discuss.elastic.co/t/logstash/191562/4 "2019-07-24T02:20:17Z")

</div>

logstash.ymlの中身はどのようになっていますか？

http\_hostに名前解決できない（つまり 0.0.0.0や127.0.0.1でない）値を設定してみたところ同じエラーが出ました。  
http\_hostとして、[xgar.sdd.com](http://xgar.sdd.com) と出鱈目な値を入れて実行した結果が以下です。

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2c45e05472947c2094652a1811aaee8b8b4ad9f3.png)

agent.rbの376行目は、webserver.runになっており、ホスト、ポートなどの設定のどこかに誤りがあるため、webserverが起動できてなくてエラーになっているのではと考えます。  
そのため、logstash.ymlを確認したいのです。

```auto
def start_webserver
    @webserver_control_lock.synchronize do
      options = {:http_host => @http_host, :http_ports => @http_port, :http_environment => @http_environment }
      @webserver = LogStash::WebServer.new(@logger, self, options)
      @webserver_thread = Thread.new(@webserver) do |webserver|
        LogStash::Util.set_thread_name("Api Webserver")
        webserver.run
      end
    end
  end

```

---

_[View the full topic](https://discuss.elastic.co/t/logstash/191562)._
