【发布时间】:2018-10-27 04:20:35
【问题描述】:
我有PostgreSQL 10 带有表的数据库。每小时有 7000 条新数据进入表中。
在Logstash 6.4 我有这样的.conf 文件,它在Elasticsearch 中创建索引。
.conf:
input {
jdbc {
jdbc_connection_string => "jdbc:postgresql://@host:@port/@database"
jdbc_user => "@username"
jdbc_password => "@password"
jdbc_driver_library => "C:\postgresql-42.2.5.jar"
jdbc_driver_class => "org.postgresql.Driver"
statement => "SELECT * from table_name"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "table_name"
}
}
问题:
- 如何使用表中出现的新数据更新现有索引?
- 索引可以存储的最大数据量是多少?会不会溢出?
【问题讨论】:
-
这个答案也可能有帮助:stackoverflow.com/a/33325963/4604579
标签: elasticsearch logstash elastic-stack