我为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}
}
预先感谢