Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit c64e56a2 authored by a3ilson's avatar a3ilson Committed by GitHub
Browse files

Update 10-syslog.conf

Cleaned up
parent b6ba6217
Branches
Tags
No related merge requests found
filter { filter {
if [type] == "syslog" { if [type] == "syslog" {
#change to pfSense ip address if [host] =~ /10\.0\.0\.1/ {
if [host] =~ /192\.168\.1\.1/ {
mutate { mutate {
add_tag => ["PFSense1", "Ready"] add_tag => ["pfsense", "Ready"]
} }
} }
#Add following and repeat for multiple if [host] =~ /172\.2\.22\.1/ {
# if [host] =~ /192\.168\.1\.200/ { mutate {
# mutate { add_tag => ["pfsense-2", "Ready"]
# add_tag => ["PFSense2", "Ready"] }
# } }
# }
if "Ready" not in [tags] { if "Ready" not in [tags] {
mutate { mutate {
add_tag => [ "syslog" ] add_tag => [ "syslog" ]
...@@ -47,8 +46,5 @@ filter { ...@@ -47,8 +46,5 @@ filter {
mutate { mutate {
remove_field => [ "syslog_hostname", "syslog_message", "syslog_timestamp" ] remove_field => [ "syslog_hostname", "syslog_message", "syslog_timestamp" ]
} }
# if "_grokparsefailure" in [tags] {
# drop { }
# }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment