Private GIT

Skip to content
Snippets Groups Projects
Commit 6b8ca3ee authored by nin9s's avatar nin9s
Browse files

Update 20-dns-syslog.conf

parent f2c21772
Branches
Tags
No related merge requests found
...@@ -73,6 +73,17 @@ filter { ...@@ -73,6 +73,17 @@ filter {
# to do cached and cached reverse # to do cached and cached reverse
else if [NODATA-IPv4] {
mutate {
add_tag => [ "NODATA" ]
}
}
else if [NODATA-IPv6] {
mutate {
add_tag => [ "NODATA" ]
}
}
if [request_from] and [message] =~ "query" { if [request_from] and [message] =~ "query" {
mutate { mutate {
...@@ -131,9 +142,7 @@ filter { ...@@ -131,9 +142,7 @@ filter {
} }
} }
else if [domain_request] and [message] =~ "cached" and [message] =~ "CNAME" {
else if [message] =~ "cached" and [message] =~ "CNAME" {
mutate { mutate {
add_tag => [ "cached domain to ip cname" ] add_tag => [ "cached domain to ip cname" ]
} }
...@@ -154,17 +163,6 @@ filter { ...@@ -154,17 +163,6 @@ filter {
} }
} }
else if [NODATA-IPv4] {
mutate {
add_tag => [ "NODATA" ]
}
}
else if [NODATA-IPv6] {
mutate {
add_tag => [ "NODATA" ]
}
}
mutate { mutate {
...@@ -189,15 +187,3 @@ filter { ...@@ -189,15 +187,3 @@ filter {
} }
} }
output {
if "pihole" in [tags]{
elasticsearch {
hosts => [""<ELASTICSEARCHHOST:PORT>""]
# manage_template => false
index => "logstash-syslog-dns-%{+YYYY.MM}"
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment