I just enabled on my elasticsearch 7.1 the security to login with user and passwords, but logstash stop working, im getting this error
[2019-05-30T12:58:41,053][ERROR][logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=>403, :url=>"http://10.11.7.20:9200/_bulk"}
[2019-05-30T12:58:41,055][ERROR][logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=>403, :url=>"http://10.11.7.20:9200/_bulk"}
[2019-05-30T12:58:41,058][ERROR][logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=>403, :url=>"http://10.11.7.20:9200/_bulk"}
[2019-05-30T12:58:41,055][ERROR][logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=>403, :url=>"http://10.11.7.20:9200/_bulk"}
my /etc/logstash/conf.d/syslog-input.conf file is this #Input by ports
input {
syslog {
port => 5140
type => "network"
}
syslog {
port => 5141
type => "fail2ban"
}
syslog {
port => 5142
type => "quagga"
}
} #Output to logstash_systemsearch
output {
elasticsearch
{
hosts => ["10.11.7.20:9200"]
user => "logstash_system"
password => "Kz8twlWy9i3NWBZOYR1T"
}
} #Filters
filter
{
if [type] == "enswitch"
{
user => "logstash_system"
password => "Kz8twlWy9i3NWBZOYR1T"
grok
{
patterns_dir => [ "/etc/logstash/patterns" ]
match => [ "message", "%{ENSWITCH1}" ]
overwrite => [ "message" ]
}
}
}
what can i do to make logstash to work again?
and the conf file of logstash is like the first post #Output to logstash_systemsearch
output {
elasticsearch
{
hosts => ["10.11.7.20:9200"]
user => "logstash_system"
password => "Kz8twlWy9i3NWBZOYR1T"
}
}
Given that you are getting a 403 response code, which suggests an authentication or authorization error, being consistent in the obfuscation of your authentication data would help a lot. For sure you should obfuscate/redact it (in both this thread and the other one) but please try to be consistent, so that we know that you know when data is consistent.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.