Hi,
I am getting slow performance when using logstash-filter-elasticsearch. Even with small volumes of data. I've tried this in multiple versions from 5.3 up to 6.0 of both ES & LS.
By way of example here is a config file:
input {
jdbc {
jdbc_connection_string => "jdbc:mysql://mydb"
jdbc_user => "myuser"
jdbc_password => "mypassword"
jdbc_driver_library => "mysql-connector-java-5.1.42-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
statement =>
"SELECT * FROM table where id > :sql_last_value limit 250"
tracking_column => id
use_column_value => true
record_last_run => true
last_run_metadata_path => "views.txt"
}
}
filter{
elasticsearch {
hosts => "https://URL:9243"
index => "reference"
user => "elastic"
password => "password"
query => "product_code:%{[media_id]}"
fields => [["aaa","aaa"]]
}
filter {
date {
match => ["purchase_time","YYYY-MM-dd HH:mm:ss"]
target => "@timestamp"
}
}
output {
elasticsearch {
hosts => "https://URL:9243"
index => "myindex"
user => "elastic"
password => "password"
document_type => "media"
}
}
My ES Reference index only has a few thousand records & only 15 columns.
I was running on ES Cloud & Local Cluster (huge environments - nothing running) and observed slowness. Any ideas how i'd go about debugging.
For Local testing I ran this on my Mac Book Pro which Intel Core I7 2.7GHz 16GB Ram and SSD with macOS Sierra 10.12.6. Java Versions:
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
For ES Cloud I tried this on 5.6.4 and 6.0
Thanks
Wayne