Logstash输入无效

时间:2014-06-10 13:24:09

标签: windows path glob logstash

我正在尝试将nio2path与logstash 1.4.1(https://logstash.jira.com/browse/LOGSTASH-2229)一起使用。我正在尝试thix修复,因为当我在Windows上使用glob路径来解析IIS日志文件夹时,我正在尝试一些严重的麻烦。

这是我的配置:

input {
 nio2path {
    path=>"logs/*.log"          
   }
}
output {    
  stdout { codec => rubydebug }
}

当我经营我的经纪人时:

logstash-1.4.1\bin\logstash agent -f myconfig.config -l log\agent.log

没有任何反应,控制台只是继续运行而不会崩溃或显示一些错误。我收到的唯一消息是我的log \ agent.log中写的警告日志:

{:timestamp=>"2014-06-10T11:32:45.585000+0200", :message=>"Using milestone 1 input plugin 'nio2path'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin.  For more information on plugin milestones, see http://logstash.net/docs/1.4.1/plugin-milestones", :level=>:warn}
{:timestamp=>"2014-06-10T15:13:47.846000+0200", :message=>"Interrupt received. Shutting down the pipeline.", :level=>:warn}

1 个答案:

答案 0 :(得分:0)

希望它对你有用。

 input {
 nio2path {
    path=>"logs/*.log"          
   }
}

output {
    stdout { codec => rubydebug }
    elasticsearch {
    cluster => "cluster name"
  }
 }