Hi team I have a requirement to create fields by matching key>value in the event . but KV filter should consider only those KV filters which are enclosed under brackets like
message : logging data (key1>value1,key2>value2) and rest key3>value3
now if i use kv filter to create search fields key1 and key2 . Kv filter field_split should consider only key1 and key2 and it should not consider key3 .
when i am using below config , it is considering key3 also :
kv {
source => "logmessage"
allow_duplicate_values => false
field_split => "(^\s,?\s$)"
value_split => ">?"
}
Actual output :
key1 => value1
key2 => value2
key3 => value3
Expected output should be :
key1 => value1
key2 => value2
Please suggest...