2017-06-12 136 views
0

我想從logstash中的日誌文件中獲取日誌這是我的logstash配置文件請幫我解決這個問題。無法解析logstash中的日誌文件中的日誌

輸入{

tcp { 
      port => 5022 
      type => "syslog" 
    } 
    udp { 
      port => 5022 
      type => "syslog" 
    } 
    file { 
      path => ["/var/log/haproxy.log"] 
      type => "syslog" 
      start_position => "beginning" 
    } 

}

回答

0

嘗試是這樣的

input 
    { 
    file { 
    path => "file-path" 
    }