Skip to content

Instantly share code, notes, and snippets.

@kovagoz
Created October 11, 2013 16:09
Show Gist options
  • Save kovagoz/6937508 to your computer and use it in GitHub Desktop.
Save kovagoz/6937508 to your computer and use it in GitHub Desktop.
logstash nginx access log backfill
input {
tcp {
type => "nginx"
port => 3333
}
}
filter {
grok {
type => "nginx"
pattern => "%{COMBINEDAPACHELOG}"
}
date {
type => "nginx"
locale => en
match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"]
}
}
output {
# stdout {
# debug => true
# }
elasticsearch {
embedded => true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment