Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 393a0595 authored by Andrew's avatar Andrew Committed by GitHub
Browse files

Update 10-pf.conf

parent 9ff06bb1
No related branches found
No related tags found
No related merge requests found
# 10-pf.conf
filter {
if "pf" in [tags] {
date {
match => [ "timestamp", " MMM dd HH:mm:ss" ]
target => "@timestamp"
}
grok {
patterns_dir => ["/etc/logstash/conf.d/patterns"]
match => [ "message", "%{PFSENSE}", "message", "%{OPNSENSE}" ]
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
}
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
locale => "en"
}
mutate {
replace => [ "message", "%{msg}" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment