Im new to Elastic and i can't find a way to add big data (read 150k SQL rows) at once to my index.
Im using postman to execute the endpoints like _bulk.
What i would like is to copy my 150k rows from my SQL Database Table and somehow get them into my index on Elasticsearch. What is the best way to do this?
Here is an example of 1 of how a row looks like in JSON as an object (information is blurred because it contains client information):
Please keep in mind that specially the stacktrace can be very long.
Any help is welcome! Thanks!
Opster_support
(Elasticsearch community support @ Opster)
2
To import a large amount of data from a SQL database to Elasticsearch, you can use Logstash, which is a data collection pipeline tool. It can fetch data from various sources including SQL databases, transform it if necessary, and load it into Elasticsearch.
Here are the steps you can follow:
Install Logstash: You can download it from the official Elasticsearch website.
Create a Logstash configuration file: This file will define the input, filter, and output. In your case, the input will be your SQL database, and the output will be Elasticsearch. If you need to transform your data, you can define it in the filter section.
Run Logstash with your configuration file: You can do this with the following command:
bin/logstash -f /path/to/your/config/file
This will start the data import process. Logstash will fetch data from your SQL database and load it into Elasticsearch.
Please note that the above steps are a basic example. Depending on your specific needs, you might need to adjust the configuration file. For example, if your SQL query is complex, or if you need to transform your data before loading it into Elasticsearch.
Also, keep in mind that importing a large amount of data can take some time and might put a significant load on your Elasticsearch cluster. Therefore, it's recommended to monitor your cluster's health and performance during the import process
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.