2014-06-10 82 views
1

我试图用logstash 1.4.1(https://logstash.jira.com/browse/LOGSTASH-2229)来使用nio2path。我正在尝试thix修复,因为我在windows上使用glob路径解析IIS日志文件夹时遇到了一些严重问题。Logstash输入不能正常工作

这是我的配置:

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

当我跑我的经纪人:

logstash-1.4.1\bin\logstash agent -f myconfig.config -l log\agent.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} 

回答

0

希望它对您有用。

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

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