Support Questions

Find answers, ask questions, and share your expertise

detect duplicates processor

avatar

Hi I tried to remove duplicates

I have a json like below

{

"message":"XXXX",

"id":"1"

}

I want to remove all json with the same id

I try using detect duplicates processor

I try Cashe Entry Identifier ${id} but it's not worked as expected

1 ACCEPTED SOLUTION

avatar
Master Guru

If you want to use ${id} as your cache entry identifier, then you need a flow file attribute called id.

You could use EvaluateJsonPath first with an expression of id = $.id to extract the id from the json into an attribute.

View solution in original post

3 REPLIES 3

avatar

@Matt Burgess I will appricate your support

avatar
Master Guru

If you want to use ${id} as your cache entry identifier, then you need a flow file attribute called id.

You could use EvaluateJsonPath first with an expression of id = $.id to extract the id from the json into an attribute.

avatar

Thanks @Bryan Bende It's worked for me