1
我嘗試從我們的網站使用logstach進行可視化日誌。logstash模式
我們的conf
input {
file {
path => 'f:/tst/zp/*zp*.log'
type => 'app'
start_position =>'end'
}
}
filter {
multiline {
pattern => ???
what => 'previous'
negate => true
}
}
output {
stdout { codec => rubydebug }
elasticsearch { embedded => true }
}
我們的日誌例子(企業庫)
----------------------------------------
16.08.2012 6:46:40 [1476] [Error] General
Message: Error
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at ZCommon.Model.Search.VacancySearchArgs.<MakeSql>b__d(String[] x) in d:\Builds\Sources\DM_Zarplata4.2_Retail3\DM_Zarplata\Zarplata4\releases\current\ZCommon4.4\Model\Search\VacancySearchArgs.cs:line 126
----------------------------------------
你能和模式幫助嗎?我使用http://grokdebug.herokuapp.com/製作圖案,但圖案不起作用。