Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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