Couchbase XDCR Configuration

HI Team,

We had requirement to replicate this document site1 to site2 but exception is the field “callback_url” should not replicate to site2.

}
 "srvr_acc_period": 60,
  "srvr_supports_async": 1,
  "connected_server_id": -1,
  "callback_url": "http://xx.xx.xx.xx:8080/smarttrustasyncresponse",
  "srvr_bar_to_time": "00:00",
  "srvr_upd_mesg_lmt": 99999999,
  "__t": "ntr-ota-serverinfo",
  "srvr_ip_addr": null,
  "__by": "ntruser",
  "srvr_cal_from_time": "00:00",
  "srvr_mesg_timeout": 0,
  "srvr_mesg_rate": 25
  }

We had search in XDCR advance regex is not possible. Is there anyway we can achieve the same.

Please advise.

Thanks,
Debasis

Hi Team,

Any help on this requirement.

Thanks,
Debasis

Hi @mreiche thanks for the reply. We are seeking a solution that allows us to immediately nullify or remove the field “callback_url” after data has been replicated from site A to site B. Is this achievable through the event service?

Thanks,
Debasis

yes. In the eventing function, update the document as desired.