![]() |
VOOZH | about |
Elasticsearch is a popular distributed full-text search engine. By centrally storing data, you can perform ultra-fast searches, fine-tuning relevance, and powerful analytics with ease. Elasticsearch has a pipeline tool for loading data called "Logstash". You can use CData JDBC Drivers to easily import data from any data source into Elasticsearch for search and analysis.
This article explains how to use the CData JDBC Driver for Salesforce Data Cloud to load data from Salesforce Data Cloud into Elasticsearch via Logstash.
Now, let's create a configuration file for Logstash to transfer Salesforce Data Cloud data to Elasticsearch.
Salesforce Data Cloud supports authentication via the OAuth standard.
Set to OAuth.
CData provides an embedded OAuth application that simplifies authentication at the desktop.
You can also authenticate from the desktop via a custom OAuth application, which you configure and register at the Salesforce Data Cloud console. For further information, see Creating a Custom OAuth App in the Help documentation.
Before you connect, set these properties:
When you connect, the driver opens Salesforce Data Cloud's OAuth endpoint in your default browser. Log in and grant permissions to the application.
The driver then completes the OAuth process as follows:
For other OAuth methods, including Web Applications and Headless Machines, refer to the Help documentation.
Now let's run Logstash using the created "logstash.conf" file.
logstash-7.8.0\bin\logstash -f logstash.conf
A log indicating success will appear. This means the Salesforce Data Cloud data has been loaded into Elasticsearch.
For example, let's view the data transferred to Elasticsearch in Kibana.
GET salesforcedatacloud_table/_search
{
"query": {
"match_all": {}
}
}
👁 Querying the Salesforce Data Cloud data loaded into ElasticsearchWe have confirmed that the data is stored in Elasticsearch.
👁 Confirming the Salesforce Data Cloud data loaded into ElasticsearchBy using the CData JDBC Driver for Salesforce Data Cloud with Logstash, it functions as a Salesforce Data Cloud connector, making it easy to load data into Elasticsearch. Please try the 30-day free trial.
Download a free trial of the Salesforce Data Cloud Driver to get started:
Download NowLearn more:
👁 Salesforce Data Cloud IconRapidly create and deploy powerful Java applications that integrate with Salesforce Data Cloud.