Hi everybody,
I've populate elasticsearch and kibana from data from a database but I've update some values in rows that are indexed yet, how can i reflex the update into elastic and kibana?
kindly regards
Hi everybody,
I've populate elasticsearch and kibana from data from a database but I've update some values in rows that are indexed yet, how can i reflex the update into elastic and kibana?
kindly regards
How did you get the data from the database into Elasticsearch?
input {
jdbc {
jdbc_connection_string => "jdbc:mysql://localhost:3306/KPIS?useSSL=false"
jdbc_user => "labo"
jdbc_password => "arcsight_L4B0"
jdbc_driver_library => "/home/jallende/elastic/mysql-connector-java-5.1.47.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
schedule => "*/10 * * * *"
statement => "Select * FROM KPIS.reglasArcsight where idreglasArcsight>:sql_last_value"
use_column_value => true
clean_run => false
tracking_column => "idreglasarcsight"
jdbc_paging_enabled => true
jdbc_page_size => 250000
last_run_metadata_path => "/usr/share/logstash/.logstash_pruebas_jdbc_last_run"
}
}
output {
elasticsearch {
"hosts" => "localhost:9200"
"index" => "pruebas"
}
stdout { codec => json_lines }
}
Any tips o possible solutions instead delete index and regenerate it from the database?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.