Private GIT

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

Update 05-syslog.conf

parent d361df60
No related branches found
No related tags found
No related merge requests found
# 05-syslog.conf
filter {
if [type] == "syslog" {
if [host] =~ /172\.22\.2\.1/ {
if [host] =~ /172\.22\.33\.1/ {
mutate {
add_tag => ["pf", "Ready"]
}
}
#Second instance - add and repeat this for multiple syslogs
if [host] =~ /192\.168\.1\.1/ {
if [host] =~ /172\.2\.22\.1/ {
mutate {
add_tag => ["pf-2", "Ready"]
}
}
#Second instance
if "Ready" not in [tags] {
mutate {
add_tag => [ "syslog" ]
......@@ -20,3 +18,10 @@ filter {
}
}
}
filter {
if [type] == "syslog" {
mutate {
remove_tag => "Ready"
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment