Hello,
I have a question, can we use a script in Logstash pipeline? I found that we can use ruby code in the pipeline but can we use another language or maybe execute the script file we want ?
This is the pipeline I want to use:
input {
udp {
port => 514
type => "syslog"
}
}
filter {
grok {
match => { "message" => "<%{NUMBER:sev}>%{GREEDYDATA:kvlist}" }
}
kv {
source => "kvlist"
remove_field => ["kvlist"]
}
}
output {
elasticsearch {
hosts => [ "localhost:9200" ]
user => elastic
password => elasticlourd
index => "syslog-%{+YYYY.MM.dd}"
}
#stdout { codec => rubydebug }
}
the "sev" field is the information I need for the script, can I give it to my script and then the script write the result in a variable created in logstash?