如何从Logstash打Ngrok链接

时间:2019-04-02 16:22:30

标签: elasticsearch logstash ngrok

我为logstash编写了配置文件,以使其在本地运行elasticsearch,并且我试图从logstash中访问ngrok链接,其中ngrok指向elasticsearch。谁能告诉我该怎么做?

我尝试在配置文件中进行更改,但看到一些网络错误

input {
    file {
        #type => "json"
        path => "/home/sanjay/Sanjay/Documents/production-SessionLogs-61vk9pt5gy0n-bk.json"
        start_position => "beginning"
        sincedb_path => "/dev/null"
        codec => 'json'

    }
}

filter {
  #csv {
   # separator => ','
    #columns => ['message']
  #}
 json {
   source => "info"
 }
}

output {
    elasticsearch {
      hosts => ['http://b4623431.ngrok.io']
      index => 'index_productionsessionlogs1'
    }
    stdout {codec => rubydebug}
}

预先感谢

0 个答案:

没有答案