![]() |
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 SQL Analysis Services to load data from SQL Analysis Services into Elasticsearch via Logstash.
Now, let's create a configuration file for Logstash to transfer SQL Analysis Services data to Elasticsearch.
To connect, provide authentication and set the Url property to a valid SQL Server Analysis Services endpoint. You can connect to SQL Server Analysis Services instances hosted over HTTP with XMLA access. See the Microsoft documentation to configure HTTP access to SQL Server Analysis Services.
To secure connections and authenticate, set the corresponding connection properties, below. The data provider supports the major authentication schemes, including HTTP and Windows, as well as SSL/TLS.
Set AuthScheme to "Basic" or "Digest" and set User and Password. Specify other authentication values in CustomHeaders.
Set the Windows User and Password and set AuthScheme to "NTLM".
To authenticate with Kerberos, set AuthScheme to NEGOTIATE. To use Kerberos delegation, set AuthScheme to KERBEROSDELEGATION. If needed, provide the User, Password, and KerberosSPN. By default, the data provider attempts to communicate with the SPN at the specified Url.
By default, the data provider attempts to negotiate SSL/TLS by checking the server's certificate against the system's trusted certificate store. To specify another certificate, see the SSLServerCert property for the available formats.
You can then access any cube as a relational table: When you connect the data provider retrieves SSAS metadata and dynamically updates the table schemas. Instead of retrieving metadata every connection, you can set the CacheLocation property to automatically cache to a simple file-based store.
See the Getting Started section of the CData documentation, under Retrieving Analysis Services Data, to execute SQL-92 queries to the cubes.
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 SQL Analysis Services data has been loaded into Elasticsearch.
For example, let's view the data transferred to Elasticsearch in Kibana.
GET ssas_table/_search
{
"query": {
"match_all": {}
}
}
👁 Querying the SQL Analysis Services data loaded into ElasticsearchWe have confirmed that the data is stored in Elasticsearch.
👁 Confirming the SQL Analysis Services data loaded into ElasticsearchBy using the CData JDBC Driver for SQL Analysis Services with Logstash, it functions as a SQL Analysis Services connector, making it easy to load data into Elasticsearch. Please try the 30-day free trial.
Download a free trial of the SQL Analysis Services Driver to get started:
Download NowLearn more:
👁 SQL Server Analysis Services IconRapidly create and deploy powerful Java applications that integrate with SQL Analysis Services.