You can use the Third-party Libraries feature to upload driver files to the configuration file of an Alibaba Cloud Logstash cluster. The Third-party Libraries feature also allows you to manage the uploaded driver files.
- Log on to the Alibaba Cloud Elasticsearch console.
- In the top navigation bar, select the region where your cluster resides.
- In the left-side navigation pane, click Logstash Clusters. On the page that appears, find the target cluster and click its ID in the Cluster ID/Name column.
- In the left-side navigation pane of the page that appears, click Cluster Configuration.
- In the Third-party Libraries section, click Manage next to Upload.
- In the lower part of the Modify Configuration panel, click Configure.
- Click Upload and select the files that you want to upload.You can upload multiple driver files at a time. The file names must end with .jar, and each file name cannot exceed 100 characters in length. The system checks file names and MD5 checksum values before the files are uploaded. If the check fails, the system displays an error message, which indicates that the files cannot be uploaded.
Logstash supports MySQL, PostgreSQL, and PolarDB JDBC driver files.Warning After you upload driver files for a cluster, the system restarts the cluster. This may affect your services. Therefore, proceed with caution.
- Click Save.After the files are uploaded, the system returns to the Cluster Configuration page and restarts the cluster. After the cluster is restarted, the third-party libraries are configured.
- Optional:Click Manage next to Upload to view the information about the third-party libraries in the Modify Configuration panel.The information about the third-party libraries contains File and Path.Notice
- For security purposes, if you use a JDBC driver to configure a pipeline, you must
allowLoadLocalInfile=false&autoDeserialize=falseat the end of the
jdbc_connection_stringparameter, such as
jdbc_connection_string => "jdbc:mysql://xxx.drds.aliyuncs.com:3306/test-database?allowLoadLocalInfile=false&autoDeserialize=false". Otherwise, the system displays an error message that indicates a check failure.
- To delete a file that you no longer use, go to the Modify Configuration panel, click Configure in the lower part, find the file, and then click the X icon.
- For security purposes, if you use a JDBC driver to configure a pipeline, you must add