Guest User

Untitled

a guest
Mar 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. input {
  2. stdin {
  3. codec => multiline {
  4. pattern => "^\[%{MONTHDAY}-%{MONTH}-%{YEAR} %{TIME} %{TZ}\]"
  5. negate => true
  6. what => "previous"
  7. auto_flush_interval => 10
  8. }
  9. type => "php-error"
  10. }
  11. }
  12.  
  13. filter {
  14. grok {
  15. match => { "message" => "^\[(?<logtime>%{MONTHDAY}-%{MONTH}-%{YEAR} %{TIME} %{TZ})\] ?%{GREEDYDATA:message}" }
  16. overwrite => [ "message" ]
  17. }
  18.  
  19. date {
  20. match => [ "logtime", "d-MMM-yyyy HH:mm:ss ZZZ" ]
  21. remove_field => [ "logtime" ]
  22. }
  23. }
  24.  
  25. output {
  26. stdout {
  27. codec => rubydebug
  28. }
  29. }
Add Comment
Please, Sign In to add comment