helloteddy 发表于 2016-9-5 11:56:02

logstash 读取日志失败

    input{   
        file{
                path=>"F:/test/localhost_access_log.2016-06-05.txt"
                start_position => beginning
                sincedb_path => "NUL"
        }
    }
    filter {
      grok {
          match => [ "message", "%{COMMONAPACHELOG}" ]
      }
          kv {
                  source => "request"
                  field_split => "&?"
                  value_split => "="
            }
      urldecode {
            all_fields => true
      }
    }
         
    output{
      stdout { codec => rubydebug }

    }   配置文件如上
logstash启动之后如图:



cheng029 发表于 2016-9-7 17:12:04

报什么错呢,启动成功了不是?
页: [1]
查看完整版本: logstash 读取日志失败