hi
I want to create a project that visualize my data in mysql to kibana
but when I run the logstash with this cmd :
.\bin\logstash -f logstash.conf
I find only 81 fields in kibana and some fields are empty yet I have more than 100 fields in my database
this my logstash.conf file :
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM analyse"
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM analyse_elementanalyse"
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM automate"
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM automatesexamen "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM catagorie "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM certificat "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM demandeexamen "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM element_stock_reactif "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM elementanalyse "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM elementatb "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM elementresultat "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM examen "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM examen_analyse "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM examens_demande "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM historique_stock_reactif "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM interpretation "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM parametres "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM phrasiers "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM piecejoints "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM prescripteurs "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM resultatanalyse"
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM resultatatb "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM stockreactif "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM tubeprelevement "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM typeelementresult "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM valeurposselemresult "
}
jdbc {
jdbc_driver_library => "E:/ELK/mysql-connector-java-8.0.17.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/mydata?serverTimezone=UTC"
jdbc_user => "root"
jdbc_password => "admin"
schedule => "* * * * *"
statement => "SELECT * FROM valeursnormales "
}
}
filter {
# add filters here if needed
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "index_analyse"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_analyse_elementanalyse"
document_id =>"%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_automate"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_automatesexamen"
document_id =>"%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_catagorie"
document_id =>"%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_certificat"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_demandesexamen"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_element_stock_reactif"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_elementanalyse"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_elementatb"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_elementresultat"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_examen"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_examen_analyse"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_examens_demande"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_historique_stock_reactif"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_interpretation"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_parametres"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_phrasiers"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_piecejoints"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_prescripteurs"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_resultatanalyse"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_resultatatb"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_stockreactif"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_tubeprelevement"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_typeelementresult"
document_id =>"%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_valeurposselemresult"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
elasticsearch {
hosts => ["localhost:9200"]
index => "index_valeurnormales"
document_id => "%{[@metadata][id]}"
user => "elastic"
password => "qwVx8sqUc14XHG+HZF3I"
}
}
I USE mysql workbench in wondows 10
what is the probleme