Home > other >  How to realize the logstash - input - JDBC incremental reading is essentially database
How to realize the logstash - input - JDBC incremental reading is essentially database

Time:09-26

My logstash input configuration file as follows
 input {
JDBC {
Type=& gt; "Testdb"
Jdbc_driver_library=& gt; "/app/sqljdbc_6. 0/emu/sqljdbc42. Jar"
Jdbc_driver_class=& gt; "Com. Microsoft. Essentially. JDBC. SQLServerDriver"

Jdbc_connection_string=& gt; "JDBC: essentially://192.168. * *. * * : 1433"
Jdbc_user=& gt; "* * * * * *"
Jdbc_password=& gt; "* * * * * * * * * *"
Jdbc_paging_enabled=& gt; "True"
The schedule=& gt; "* * * * *"
Statement_filepath=& gt; "/app/age_config. D/sqlserver_10. 1.2.37. SQL"

}

}

I hope that when the testdb database has the new data is written to logstash read automatically write new data

CodePudding user response:

Refer to http://blog.csdn.net/yeyuma/article/details/50240595
The new time can read
Can also listen to modify,

CodePudding user response:

reference 1st floor mafenghan response:
http://blog.csdn.net/yeyuma/article/details/50240595
The new time can read
Can also listen to modify,


This example is too special, the situation is arranged in advance as ~
If in the middle, insert a data should not line? Is there any internal mechanism is essentially a directly?
  • Related