Guest User

Untitled

a guest
Oct 18th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. filter {
  2. if [type] == "elb-log" {
  3. grok {
  4. match => [ "message", "%{TIMESTAMP_ISO8601:timestamp} %{NOTSPACE:elb_name} %{IP:elb_client_ip}:%{INT:elb_client_port} %{IP:elb_backend_ip}:%{INT:elb_backend_port} %{BASE16FLOAT:request_processing_time} %{BASE16FLOAT:backend_processing_time} %{BASE16FLOAT:response_processing_time} %{UUID:elb_status_code} %{UUID:backend_status_code} %{INT:elb_received_bytes} %{INT:elb_sent_bytes}\ %{GREEDYDATA:data}" ]
  5. }
  6.  
  7. date {
  8. match => ["timestamp","yyyy-MM-dd HH:mm:ss,SSS"]
  9. remove_field => ["timestamp"]
  10. }
  11.  
  12. mutate {
  13. update => {
  14. "type" => "classic-elb-log"
  15. }
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment