Here is what i am trying to achieve.
Below is my log event
{
"version" : "1.0.0",
"message" : "noisemaker draftsmanship's soundproofing grads werewolf's",
"@version" : "1",
"logplane" : "logs-lj",
"pipeline_data" : [
{
"lumberjack_ext_lj_1" : 6
},
{
"lumberjack_ext_lj_2" : 6
}
],
"@timestamp" : "2023-02-22T18:54:36.515Z"
}
And here is my config map. i know that the pipeline_data is an array, but how can I add a condition out of the child elements in that.
if [pipeline_data][lumberjack_ext_lj_1] {
if [pipeline_data][lumberjack_ext_lj_1] > 120 {
exec {
command => ""
}
pipeline { send_to => "droppipeline" }
}
{{- end }}