Hi I am not able to push the logs from my mule application to logstash which is running in ecs in aws and it is up .
input {
tcp {
port => 4560
codec => json
}
}
filter {
date {
match => [ "timeMillis", "UNIX_MS" ]
}
}
output {
elasticsearch {
hosts => ["http://ip-address:9200"]
index => "testing"
}
}
This is my conf file i.e logstash.conf which is in /usr/share/logstash/pipeline and my logstash.yml file is
http.host: "0.0.0.0"
xpack.monitoring.elasticsearch.hosts: [ "http://ip-address:9200" ] which is in /usr/share/logstash/config this only changes I have done. how can I do it .Please can anyone help for this.I dont know what is wrong.What I have added in log4j is below.
<Socket name="socket" host="ip-address of logstash" port="4560" protocol="TCP">
<JsonLayout compact="true" eventEol="true" />
</Socket>
<AsyncRoot level="INFO">
<AppenderRef ref="socket"/>
</AsyncRoot>