Skip to content

Commit

Permalink
accidentally deleted this config
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedSalihbasic committed Jan 12, 2024
1 parent defade0 commit ff21de0
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions config/processors/log_elasticsearch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright [2021] [Cargill, Incorporated.]
# SPDX-License-Identifier: Apache-2.0
# Ansible alert web hook to logstash https listener
input {
pipeline {
address => VAR_PIPELINE_NAME
}
}
filter {
mutate {
add_field => { "[event][module]" => "elasticsearch" }
add_field => { "[event][dataset]" => "elasticsearch.audit" }
copy => { "[beat][hostname]" => "[log][source][hostname]" }
}
mutate {
rename => {
"@timestamp" => "[event][created]"
"[input][type]" => "[file][type]"
"program" => "[event][kind]"
"source" => "[file][path]"
"destination" => "[file][target_path]"
"tags" => "[tags]"
"severity" => "[event][severity_name]"
"[beat][name]" => "[agent][name]"
"[beat][hostname]" => "[host][hostname]"
"[beat][version]" => "[agent][version]"
"service" => "[service][name]"
"thread" => "[process][thread][id]"
"role" => "[user][roles]"
"[fields][environment]" => "[group][name]"
}
}
date {
match => [ "[event][created]", "ISO8601" ]
target => "[event][created]"
tag_on_failure => "_dateparsefailure_ec"
}
mutate {
remove_field => [ "beat" , "input", "topic_name", "offset", "@version", "fields", "prospector", "level"]
}
}
output {
pipeline { send_to => [enrichments] }
}

0 comments on commit ff21de0

Please sign in to comment.