简体   繁体   English

使用Elasticsearch / Logstash / Kibana的数据库SQL

[英]Database SQL with Elasticsearch / Logstash / Kibana

I wish to access SQL database to receive data in ElasticSearch. 我希望访问SQL数据库以在ElasticSearch中接收数据。

Is it possible to connect it directly? 是否可以直接连接?

The most direct way I can think is by using the jdbc-river plugin. 我能想到的最直接的方法是使用jdbc-river插件。

The basic idea is that you poll a database using the equivalent jdbc driver that dumps your 'select queries' into an elasticsearch index. 基本思想是,您使用等效的jdbc驱动程序轮询数据库,该驱动程序将“选择查询”转储到Elasticsearch索引中。

Configuration varies depending on your scenario(new/existing index, poll cron) but plugin's README.md has everything you need to get started! 配置因您的情况而异(新/现有索引,轮询cron),但插件的README.md包含了您入门所需的一切!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM