小编Sid*_*lly的帖子

未知为elasticsearch设置'hosts'

我正在尝试在我的mac上运行logstash配置文件,但每次我这样做,我都会收到此错误:

 'Unknown setting 'hosts' for elasticsearch {:level=>:error} 
  Error: Something is wrong with your configuration.
  You may be interested in the '--configtest' flag which you can
  use to validate logstash's configuration before you choose
  to restart a running system.'
Run Code Online (Sandbox Code Playgroud)

我正在检索JIRA数据并将其发送到elasticsearch,但即使这个简单的任务也会返回错误.这是我的代码:

 input{
        exec {
             command => "curl -u username:password https://mycompany.atlassian.net/rest/api/latest/search?maxResults=10"
              interval => 300
               }
       }
  output{
       elasticsearch{
             hosts => ["127.0.0.1:9200"]
             index => "test"
        }
   }  
Run Code Online (Sandbox Code Playgroud)

exec elasticsearch logstash

3
推荐指数
1
解决办法
6782
查看次数

标签 统计

elasticsearch ×1

exec ×1

logstash ×1