简体   繁体   中英

How to load using logstash in AWS Elasticsearch

I didn't find any proper documentation in output plugins of logsatsh ,for loading data into AWS ES,i do find

output plugin only speaks the HTTP protocol. without specifying port 9200 can we load data in AWS ES

   input {
            jdbc {
                jdbc_connection_string => "jdbc:mysql://localhost/elasticsearch"
                jdbc_user => "root"
                jdbc_password => "empower"
                #jdbc_validate_connection => true
                jdbc_driver_library => "/home/wtc082/Documents/com.mysql.jdbc_5.1.5.jar"
                jdbc_driver_class => "com.mysql.jdbc.Driver"
                statement => "SELECT * FROM index_part_content_local LIMIT 10;"
                schedule => "1 * * * *"
                #codec => "json"
            }
        }

    output {
        elasticsearch {
            index => "mysqltest"
            document_type => "mysqltest_type"
            document_id => "%{partnum}"
            hosts => "AWSURI"
        }
    }

Can we do like this ?

Actually, I was using the log stash 2.4 to load data from Mysql to ES 5.X version when I used the log stash 5.X version it solved my issue.I didn't get any error while running the conf file

Thanks Val

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM