Related Blogs
Introduction to Kibana
Aug 1, 2020, 6:19:45 PM | Anurag Srivastava
Bucket Aggregation in Elasticsearch
Aug 29, 2018, 7:15:06 PM | Anurag Srivastava
Metrics Aggregations in Elasticsearch
Aug 18, 2018, 6:02:20 PM | Anurag Srivastava
Introduction to Elasticsearch Aggregations
Aug 14, 2018, 4:47:56 PM | Anurag Srivastava
Wildcard and Boolean Search in Elasticsearch
Aug 10, 2018, 7:14:40 PM | Anurag Srivastava
Basics of Data Search in Elasticsearch
Aug 4, 2018, 7:02:21 AM | Anurag Srivastava
Top Blogs
Wildcard and Boolean Search in Elasticsearch
Aug 10, 2018, 7:14:40 PM | Anurag Srivastava
Elasticsearch REST APIs
Jul 31, 2018, 6:16:42 PM | Anurag Srivastava
How to count number of words in a HTML string and find Read time in Python 3
Jun 30, 2018, 12:07:47 PM | jitender yadav
Create a Chess board in PHP
Mar 9, 2020, 8:45:41 AM | Rocky Paul
Bucket Aggregation in Elasticsearch
Aug 29, 2018, 7:15:06 PM | Anurag Srivastava
Metrics Aggregations in Elasticsearch
Aug 18, 2018, 6:02:20 PM | Anurag Srivastava
Answers
Anurag Srivastava
Oct 3, 2020, 10:58:55 AM | Share- Facebook
- Twitter
- WhatsApp
- Linkedin
- Copy Link
We can migrate the MySQL data to Elasticsearch using Logstash and for that, we first need to create the Logstash
configuration file inside /etc/logstash/conf.d/ directory. So let us create a file as blog.conf and write the following code:
After doing all those configuration changes we need to execute Logstash configuration using the following command on
Ubuntu:
This is a one time command and after running it, the scheduler will start working as per our scheduler entry, the query
will be executed every second. In this way, we can configure Logstash using the JDBC input plugin to read the RDBMS
data and put it into Elasticsearch.
If you want more details then please refer to my blog: Configuring Logstash to push MySQL data into Elasticsearch
Let me know in case if you have any further doubt.