YugabyteDB's Change Data Capture (CDC) feature allows data to be sent from the database to Elasticsearch, enabling near-real-time search capabilities for applications that require it. This integration uses Logstash as a bridge between YugabyteDB and Elasticsearch, allowing data to be streamed into Elasticsearch in JSON format. The CDC architecture consists of YugabyteDB reporting changes to its write-ahead-log (WAL), which are then pulled by the Debezium Kafka connector and ingested through Logstash into Elasticsearch. This enables applications to search the data based on different filtering criteria using Kibana or directly from Elasticsearch, making it suitable for use cases such as building near-real-time search engines or upstreaming data for analytical or data science applications.