Open
Description
This is an idea for improving reuse and config style. I suggest to realize mechanism like python import
or Jinja include
. tthis is necessary to use user logstash config in different pipelines without using the Pipeline to Pipeline communication
For example:
user library
function set_http_status_code {
if http_status_code >= 200 && http_status_code <= 299 {
mutate {
add_field => {
"status" => "success"
}
}
} else {
mutate {
add_field => {
"status" => "error"
}
}
}
}
pipeline code
filter {
mutate {
remove_field => ["foo_field"]
}
function {
name => "set_http_status_code"
}
}