Skip to content

Instantly share code, notes, and snippets.

hacktvist

Block or report user

Report or block hacktvist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View logstashfilter
filter {
if "apache_access_json" in [tags] {
if [useragent] != "-" and [useragent] != "" {
useragent {
add_tag => [ "UA" ]
source => "useragent"
prefix => "UA-"
}
}
View logstashoutput
output {
elasticsearch {
host => "localhost"
protocol => "http"
}
}
View gist:8e1b50dbb85a156ff6d8
input {
lumberjack {
port => 5000
tags => ["apache_access_json"]
codec => "json"
ssl_certificate => "/etc/ssl/logstash.pub"
ssl_key => "/etc/ssl/logstash.key"
}
}
You can’t perform that action at this time.