# Streaming transactional data from AWS RDS instance to Elasticsearch

**URL:** https://discuss.elastic.co/t/streaming-transactional-data-from-aws-rds-instance-to-elasticsearch/103960
**Category:** Logstash
**Created:** [October 13, 2017, 9:07pm UTC](https://discuss.elastic.co/t/streaming-transactional-data-from-aws-rds-instance-to-elasticsearch/103960 "2017-10-13T21:07:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wsadiq](https://avatars.discourse-cdn.com/v4/letter/w/ce73a5/32.png) [@wsadiq](https://discuss.elastic.co/u/wsadiq)
#### Post date: [October 13, 2017, 9:07pm UTC](https://discuss.elastic.co/t/streaming-transactional-data-from-aws-rds-instance-to-elasticsearch/103960/1 "2017-10-13T21:07:44Z")

</div>

Hello,

Our application keeps all its transactional data in an AWS RDS instance. I would like to provide business intelligence over this transactional data using Elasticsearch and Kibana. So my first task is to figure out a way to get this transactional data that is being stored in a MySQL RDS instance. From my research it seems like my best option is to setup Logstash with jdbc input plugin ti send data to Elasticsearch.

Our data is primarily sales transactions that are happening during the course of the day. What is the best strategy for sending this data to Elasticsearch. If I send all data at the end of the data then my business intelligence is always using old data. Ideally I would like to keep the data that Elasticsearch is using almost realtime.

Any advise on the strategy and setup would be helpful.

FYI.. We use AWS so Logstash, Elasticsearch and Kibana will all be in AWS.

Thanks,

Waqar

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 14, 2017, 2:59pm UTC](https://discuss.elastic.co/t/streaming-transactional-data-from-aws-rds-instance-to-elasticsearch/103960/2 "2017-10-14T14:59:12Z")

</div>

The JDBC input has scheduling options, so you can run it every minute (for eg) - [https://www.elastic.co/guide/en/logstash/6.0/plugins-inputs-jdbc.html#\_scheduling](https://www.elastic.co/guide/en/logstash/6.0/plugins-inputs-jdbc.html#_scheduling)

---

<div class="post-metadata">

### Author: ![wsadiq](https://avatars.discourse-cdn.com/v4/letter/w/ce73a5/32.png) [@wsadiq](https://discuss.elastic.co/u/wsadiq)
#### Post date: [October 15, 2017, 5:29pm UTC](https://discuss.elastic.co/t/streaming-transactional-data-from-aws-rds-instance-to-elasticsearch/103960/3 "2017-10-15T17:29:51Z")

</div>

Hi Mark,

Thanks for your response. Knowing the mechanics will definitely help. I was also asking for design related advise. Since my application is generating transactional data, it is happening throughout the day. My question was what is the best design to move transactional data to Elasticsearch.

Thanks,

Waqar

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [October 17, 2017, 8:16pm UTC](https://discuss.elastic.co/t/streaming-transactional-data-from-aws-rds-instance-to-elasticsearch/103960/4 "2017-10-17T20:16:18Z")

</div>

I don't see any reasons from the Logstash perspective why you shouldn't be running the query frequently (using the schedule feature as described).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 14, 2017, 8:16pm UTC](https://discuss.elastic.co/t/streaming-transactional-data-from-aws-rds-instance-to-elasticsearch/103960/5 "2017-11-14T20:16:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
