【问题标题】:Logstash input not workingLogstash 输入不起作用
【发布时间】:2014-07-31 06:56:11
【问题描述】:

我正在尝试将 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}

【问题讨论】:

    标签: windows path glob logstash


    【解决方案1】:

    希望对你有用。

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

    【讨论】:

      猜你喜欢
      • 2015-07-09
      • 1970-01-01
      • 2017-02-18
      • 1970-01-01
      • 1970-01-01
      • 2021-01-30
      • 1970-01-01
      • 2018-09-29
      • 1970-01-01
      相关资源
      最近更新 更多