Advertisement
dee78

beats-pipeline

Apr 26th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. input {
  2. beats {
  3. port => "5044"
  4. }
  5. }
  6.  
  7. filter {
  8.  
  9. grok {
  10. match => [ "message", "%{NUMBER:timestamp}\s+%{NUMBER:response_time} %{IPORHOST:src_ip} %{NOTSPACE:squid_request_status}/%{NUMBER:http_status_code} %{NUMBER:transfer_size} %{NOTSPACE:http_method} (%{URIPROTO:url_scheme}://)?(?<url_host>\S+?)(:%{INT:url_port})?(/%{NOTSPACE:url_path})?\s+%{NOTSPACE:client_identity}\s+%{NOTSPACE:peer_code}/%{NOTSPACE:peerhost}\s+%{NOTSPACE:content_type}" ]
  11. }
  12.  
  13. date {
  14.  
  15. match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z"]
  16.  
  17. }
  18.  
  19. }
  20.  
  21. output {
  22.  
  23. elasticsearch {
  24.  
  25. hosts => ["localhost:9200"]
  26.  
  27. }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement