Unverified Commit a84c0ba2 authored by William Tucker's avatar William Tucker Committed by GitHub
Browse files

Merge pull request #277 from ESGF/logstash

Updated logstash configuration to ignore HEAD and unecessary OPeNDAP …
parents a825711d f03a5880
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -18,10 +18,18 @@ filter {
        }
        remove_field => ["message"]
    }
    # Drop HEAD requests
    if [method] == "HEAD" {
        drop { }
    }
    # Only consider file downloads and OPeNDAP accesses
    if [request] !~ "^/thredds/(fileServer|dodsC)" {
        drop { }
    }
    # Drop extraneous OPeNDAP requests
    if [request] =~ "^/thredds/dodsC/([\?].*)\.(html|nc|dds|das)" {
        drop { }
    }
    # Replace the logstash timestamp with the timestamp from the request
    date {
        match => ["request_time", "dd/MMM/yyyy:HH:mm:ss Z"]