9

These are three simple questions which was surprisingly hard to find definite answers.

  1. Does ElasticSearch support indexing data in RDBMS tables ( Oracle/SQLServer/Informix) out of the box?
  2. If yes, can you please point me to documentation on how to do it
  3. If not, what are alternate ways (plugins like Rivers - deprecated) with good reputation
Ishan Hettiarachchi
  • 1,426
  • 2
  • 19
  • 31

1 Answers1

7

I'm surprised there isn't any solid answer as yet for this. So here's the solution. Logstash directly gives us the ability to push data from a RDBMS into Elasticsearch.

Here's a link to a tutorial which tell you how to go about it. Briefly(all details in link 1), you simply need a JDBC driver for the relational database you'll be using (Postgres, MySQL etc) and make a config file specifying your input as the Relational Database and your output as Elasticsearch. You can also specify a cron which would allow you to keep updating one regular intervals.

gabbar0x
  • 4,046
  • 5
  • 31
  • 51