Answers common questions about Alibaba Cloud Logstash.
-
How can I import data from or export data to Logstash over the Internet?
-
Does the JDBC feature of Alibaba Cloud Logstash support MySQL databases?
-
How do I use Logstash to synchronize data from Simple Log Service to Elasticsearch?
DRDS as a Logstash data source
Yes. Follow the same process as an RDS MySQL data migration. Use Logstash to synchronize data from an RDS MySQL database to an Elasticsearch cluster.
Internet data transfer
Logstash clusters run in a VPC and require a NAT gateway for Internet access. Configure a NAT gateway for data transmission over the Internet.
Errors with a self-managed Kafka cluster
Common errors:
-
No entry found for connection
Cause: The Logstash node cannot resolve the Kafka hostname.
Solution: Add the following to the
server.propertiesfile. Example for a Kafka service at 10.10.10.10:9092:listeners=PLAINTEXT://10.10.10.10:9092 advertised.listeners=PLAINTEXT://10.10.10.10:9092Important-
Replace
10.10.10.10:9092with your Kafka cluster's address and port. -
Use the Alibaba Cloud Kafka service and add your Logstash node IP addresses to the Kafka cluster whitelist.
-
-
could not be established. Broker may not be available
Cause: The Kafka service is unreachable or does not exist.
Solution: Verify that the Kafka service is running and the
bootstrap_serversvalue in the pipeline configuration is correct.
JDBC support for MySQL
Yes. Upload the mysql-connector-java library first. Configure third-party libraries.
Node monitoring
Yes. Associate your Logstash cluster with an Elasticsearch cluster via X-Pack, then monitor nodes in Kibana. Configure X-Pack monitoring.
Uploading script files
No. Logstash transfers data through pipeline configurations only. Manage pipelines by using configuration files.
Configuring HTTP input
Yes. Logstash accepts single-line and multi-line events over HTTP or HTTPS. Http input plugin.
Logstash clusters are not Internet-accessible by default. To collect HTTP requests from the Internet, configure a NAT gateway. Configure a NAT gateway for data transmission over the Internet.
Sync data from Simple Log Service to Elasticsearch
Use the logstash-input-sls plugin. Use the logstash-input-sls plugin.
Real-time data synchronization
Logstash synchronizes data in near-real time. It writes continuously to the destination while the pipeline is active and the source contains data.
Handling the "routing is missing" error
Child documents require a routing value because parent and child documents must reside on the same shard. Set the destination index primary shard count to 1 and add routing =>"0" to your pipeline configuration.
Troubleshooting stuck pipeline updates
Check the cluster's main logs to identify the cause (Query logs). Common causes and solutions:
|
Cause |
Solution |
|
Incorrect pipeline configuration. |
Pause the update. After the cluster is paused, modify the pipeline configuration and restart the cluster. View the progress details of a cluster task. |
|
High disk usage. |
Upgrade the cluster. Upgrade a cluster. After the upgrade, refresh the cluster and check the update progress. |
|
Auto Indexing is not enabled on the destination Elasticsearch cluster (output: elasticsearch). |
Enable Auto Indexing on the Elasticsearch cluster. Configure YML parameters.After you complete the operation, refresh the cluster and monitor the progress of the change. |
|
Beats input port is outside the 8000-9000 range. |
Pause the update. After the cluster is paused, modify the port in the pipeline configuration to a value within the 8000 to 9000 range, and restart the cluster. |
|
Source or destination uses a public IP address. |
Use one of the following solutions:
|
|
The pipeline configuration includes |
Use one of the following solutions:
|
Pinging the private IP address
By default, you cannot ping the private IP address of a Logstash cluster. Use telnet to test network connectivity instead.
Mapping consistency for Elasticsearch data sync
Alibaba Cloud Elasticsearch disables Auto Indexing by default for security. Logstash creates indexes by submitting data directly, not through the Create index API. Before transferring data, either enable Auto Indexing on the destination cluster or pre-create the index with mappings.
Support for rubydebug mode
No. Use the logstash-output-file_extend plugin to print debug logs instead. Rubydebug and similar modes require stdout output, which Alibaba Cloud Logstash does not support.