Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- jdbc {
- jdbc_connection_string => "jdbc:mysql://myhostmachine:3306/report_generation2"
- jdbc_user => "root"
- jdbc_password => "root"
- jdbc_validate_connection => true
- jdbc_driver_library => "/oathforthejar/mysql-connector-java-5.1.39-bin.jar"
- jdbc_driver_class => "com.mysql.jdbc.Driver"
- schedule => "* * * * *"
- statement => "SELECT * from tablename"
- jdbc_paging_enabled => "true"
- jdbc_page_size => "50000"
- }
- }
- filter {
- date {
- match => ["time", "yyyy-MM-dd HH:mm:ss"]
- target => "timestamp"
- locale => "en"
- timezone => "UTC"
- }
- mutate {
- remove_field => ["@timestamp"]
- #convert => { "chargeamount" => "float" }
- #convert => { "responsecode" => "integer" }
- }
- }
- output {
- elasticsearch {
- #protocol => http
- index => "response_summary6"
- document_type => "message_logs"
- document_id => "%{messagerowid}"
- action => index
- hosts => ["http://myhostmachine:9402"]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement