Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- file {
- path => 'C:\projects\Propy.Ethereum.Rest\logs\test\log.log'
- start_position => "beginning"
- }
- }
- output {
- stdout { codec => rubydebug }
- elasticsearch {
- hosts => "localhost:9200"
- user => "elastic"
- password => "changeme"
- }
- }
- filter {
- grok {
- match => {
- "message" => "(?<timestamp>%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME})%{SPACE}%{LOGLEVEL:level}%{SPACE}%{NUMBER:pid} --- \[%{SPACE}(?<thread>[A-Za-z0-9-]+)\] [A-Za-z0-9.]*\.(?<class>[A-Za-z0-9#_]+)\s*:%{SPACE}(\{%{GREEDYDATA:fields.CorrelationId}\})?:(\{%{GREEDYDATA:fields.proTokenBalance}\}%{SPACE})?\s%{GREEDYDATA:logmessage}"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment