2017-08-14 7 views
0

これは私の設定ファイルである:それは複数行フィルタの「パターン」のように思える enter image description hereなぜlogstashの "multiline"フィルタが正しく動作しなかったのですか?

input{ 
redis{ 
     data_type => "list" 
     key => "aas-redis-logback" 
     host => "my redis host" 
     port => "6379" 
     password => "my redis password" 
    # threads => 5 
    } 
stdin{}  
} 

filter{ 
    multiline{ 
      pattern => "^\[AAS\]" 
      negate => true 
      what => "previous" 
    } 

} 

output{ 
    elasticsearch{ 
     hosts => "168.2.8.88:9200" 
     index => "0814-multi-test" 
    } 
    stdout{codec => rubydebug} 
} 

と、これは私のログファイルです: enter image description here

そして、これが私の出力でありますすべてのログメッセージがまとめられています。 なぜですか?

答えて

0

trueに変更します。 次に、

multiline{ 
     pattern => "^\[AAS\]" 
     negate => "true" 
     what => "previous" 
} 

となります。正しく動作します。

関連する問題