Logstash error failed to execute action
The main reason why most of them report this error is that the conf file configuration is written incorrectly
input {
stdin {
}
jdbc {
# mysql database connection
jdbc_connection_string => "jdbc:mysql://127.0.0.1:3306/itripdb?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC"
# mysqly username and password
jdbc_user => "root"
jdbc_password => ""
# Driver configuration Here fill in your own mysql-connector-java-8.0.13.jar path
jdbc_driver_library => "D:\soft\Elasticsearch\logstash-7.9.3\logstash-7.9.3\bin\mysql-connector-java-8.0.13.jar"
# Driver class name
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_paging_enabled => "true"
# Specify to display 300000 entries per page
jdbc_page_size => "300000"
# Execute the specified sql file
# The sql statement to be executed
statement => "SELECT * FROM itrip_hotel"
# Set listen to the meaning of each field minute hour day month year, default all * means: updated every minute
schedule => "* * * * * *"
# index type
# type => ""
}
}
output {
elasticsearch {
#es server
hosts => ["localhost:9200"]
#ES index name
index => "itrip_hotel"
#primary key self-incrementing ID
document_id => "%{id}"
}
#Set json format
stdout {
codec => json_lines
}
}
Read More:
- How to Solve elasticsearch and logstash Install Error
- How to Solve elk7.7.1 logstash Install Error
- [Solved] Arm Server kibana7.4.1 Error: Sending Logstash logs to /home/logstash-6.8.4/logs which is now configured via log4j2.properties
- How to Solve Error: Android java.lang.IllegalStateException: Could not execute method of the activity
- Exception: logstash:: pluginloadingerror when importing MySQL data into es in Windows
- How to Solve Springboot Error: Failed to convert value of type
- After configuring the ES password, logstash starts with error 401?
- How to Solve Hyperf Failed to Start Error After Aliyun ACM Installed
- [Solved] elasticsearch Error: Failed: 1: this action would add [6] total shards, but this cluster currently has [2
- How to Solve Error: Heartbeating to master:7182 failed.
- How to Solve Error: Failed to load ApplicationContext
- How to Solve Application failed to start error
- How to Solve Error: failed to load response
- How to Solve NPM update check failed Error
- Duplicate entry ‘1’ for key’PRIMARY’ (How to Solve)
- How to Solve Docker failed to initialize Error
- How to Solve Import antd Error: Module build failed
- How to Solve Loadrunner Error: Failed to find .cfg file
- How to Solve Git Error: error: failed to push some refs to……
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition