Simplest way to get data from AWS mysql RDS to AWS Elasticsearch?

16,413

You can achieve the same thing with your local Logstash, simply point your jdbc input to your RDS database and the elasticsearch output to your AWS ES instance. If you need to run this regularly, then yes, you'd need to setup a small instance to run Logstash on it.

A more "native" AWS solution to achieve the same thing would include the use of Amazon Kinesis and AWS Lambda.

Here's a good article explaining how to connect it all together, namely:

  • how to stream RDS data into a Kinesis Stream
  • configuring a Lambda function to handle the stream
  • push the data to your AWS ES instance
Share:
16,413

Related videos on Youtube

Sam Fen
Author by

Sam Fen

Software engineer

Updated on June 04, 2022

Comments

  • Sam Fen
    Sam Fen almost 2 years

    I have data in an AWS RDS, and I would like to pipe it over to an AWS ES instance, preferably updating once an hour, or similar.

    On my local machine, with a local mysql database and Elasticsearch database, it was easy to set this up using Logstash.

    Is there a "native" AWS way to do the same thing? Or do I need to set up an EC2 server and install Logstash on it myself?

  • James Daily
    James Daily almost 5 years
    How would AWS Database Migration Service compare with Kinesis for this? (now that AWS DMS supports AWS ElasticSearch as a target)
  • Joel Cahalan
    Joel Cahalan almost 4 years
    The first method of pointing to aws es instance as the output can be a bit tricky. You may need to use an ssh tunnel, diable ssl checking and disable ilm since aws doesn't support x_pack( I had to change the logstash source to get that last part working)
  • jsindos
    jsindos over 2 years
    @JoelCahalan Are there any resources you can point me to for how to achieve this? I'm completely new to logstash and wading into the source sounds like a nightmare...