Guest User

Untitled

a guest
Aug 14th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. input {
  2.  
  3. file {
  4. path => 'C:\projects\Propy.Ethereum.Rest\logs\test\log.log'
  5. start_position => "beginning"
  6. }
  7. }
  8. output {
  9. stdout { codec => rubydebug }
  10. elasticsearch {
  11. hosts => "localhost:9200"
  12. user => "elastic"
  13. password => "changeme"
  14.  
  15. }
  16. }
  17. filter {
  18. grok {
  19. match => {
  20. "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}"
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment