Hello Team,
I am new to the ELK stack.
I have a use case where I need to tag documents based on the dictionary. Where Dictionary key is String and value is list of Strings.
So basically if the document field matches with dictionary key (regex pattern) then I want to add all the values as tags to that document.
For example.
Input
Doc1 :
{
"Field 1" :"A",
"Field 2":"B",
"Field 3":"abcd"
}
Doc2:
{
"Field 1" :"C",
"Field 2":"D",
"Field 3":"abcd1"
}
Dictionary :
{ "abcd1": <"abcd1","abcd11","abcd111">,
"abcd2":<abcd2","abcd22","abcd222">
}
Here Doc1 matches with both the Dictionary entries so Doc1 should be tagged with all the values ("abcd1","abcd11","abcd111","abcd2","abcd22","abcd222")
But Doc2 matches with only 1st Dictionary entry
So it should be tagged with only entry 1 values (
"abcd1","abcd11","abcd111")
Any pointers would be really helpful.
Thanks in advance.
Aditya