This problem occurs because after elasticsearch configures the password, the connection es encounters authentication problems when logstash starts. The solution requires configuring the account password in the logstash configuration file
vim /app/logstash/config/beat_es.conf
input {
beats {
port => 5044
}
}
filter {
#Only do json parsing on nginx json logs, system messages are in other formats, no need to handle
if [fields][log_type] == "nginx"{
json {
source => "message"
remove_field => ["beat","offset","tags","prospector"] #Remove fields, no collection required
}
date {
match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"] # match the timestamp field
target => "@timestamp" # write the matched data to the @timestamp field
}
}
}
output {
if [fields][log_type] == "ruoyi" {
elasticsearch {
hosts => ["node1:9200","node2:9200"]
user => elastic
password => "123123"
index => "ruoyi_log"
timeout => 300
}
}
}
Read More:
- Exception: logstash:: pluginloadingerror when importing MySQL data into es in Windows
- [Solved] Arm Server kibana7.4.1 Error: Sending Logstash logs to /home/logstash-6.8.4/logs which is now configured via log4j2.properties
- Mysql5.7.18.1 Error 1054 (42S22): Unknown Column’password’ In’field List’ When Changing User Password
- How to Solve Logstash error: failed to execute action
- How to Solve elk7.7.1 logstash Install Error
- How to Solve elasticsearch and logstash Install Error
- How to Solve ES error: “illegal_argument_exception”
- ES Error: Alternatively, set fielddata=true on [How to Solve]
- ES Startup error: ERROR: [2] bootstrap checks failed
- How to Solve creating bean with name ‘mappingjackson2httpmessageconverter’ error when elasticsearch advanced client starts‘
- [Solved] error: password authentication failed for user “postgres”
- [Solved] Python Connect to ES Error: elasticsearch.ApiError: ApiError(406
- [Solved] ES Query SIZE too large Error: ENTITY CONTENT IS TOO LONG [105539255] FOR THE CONFIGURED BUFFER LIMIT [104857600]
- Error configuring application listener of class jdbc.ContextListener [One of the solutions]
- [Solved] Flink jdbc Error: Access Denied for user ‘root‘@‘10.0.0.x‘ (using password: YES)
- [Solved] ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- [Solved] Canal 1.1.5 Startup Error: caching_sha2_password Auth failed
- Support for password authentication was removed on August 13, 2021
- Webpack Pack and compress ES6 files with errors: ERROR in js/xxxxxx.js from UglifyJs Unexpected token punc ()
- How to Solve kubelet starts error (k8s Cluster Restarted)