Hello,
Below is the application log4j.xml file,
<?xml version="1.0" encoding="UTF-8" ?><log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">
</log4j:configuration>
And below is the logstash configuration file for same application,
input {
log4j {
mode => "server"
port => 4994
type => "log4j"
}
}
output {
stdout {}
elasticsearch { codec => rubydebug
hosts => "ElasticsearchIP"
index => "login"
}
}
Below are the logs of my spark application executor,
log4j:ERROR Could not connect to remote log4j server at [LogstashHostname.example.com]. We will try again later.
And below are the logs of spark application driver,
log4j: Attempting connection to LogstashHostname.example.com
log4j: Remote host LogstashHostname.example.com refused connection.
log4j: Attempting connection to LogstashHostname.example.com
log4j: Remote host LogstashHostname.example.com refused connection.
log4j: Attempting connection to LogstashHostname.example.com
log4j: Remote host LogstashHostname.example.com refused connection.
log4j: Attempting connection to LogstashHostname.example.com
log4j: Remote host LogstashHostname.example.com refused connection.
Can you please let me know what can be the cause of these errors?