Index is not creating in logstash through mule

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 ""
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" />
<AsyncRoot level="INFO">
  <AppenderRef ref="socket"/>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.