# Index is not creating in logstash through mule

**URL:** <https://discuss.elastic.co/t/index-is-not-creating-in-logstash-through-mule/342100>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [September 1, 2023, 7:53am UTC](https://discuss.elastic.co/t/index-is-not-creating-in-logstash-through-mule/342100 "2023-09-01T07:53:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikascateina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikascateina/32/123762_2.png) [@vikascateina](https://discuss.elastic.co/u/vikascateina)\
**Post date:** [September 1, 2023, 7:53am UTC](https://discuss.elastic.co/t/index-is-not-creating-in-logstash-through-mule/342100/1 "2023-09-01T07:53:06Z")

</div>

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](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](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.

```auto
<Socket name="socket" host="ip-address of logstash" port="4560" protocol="TCP">
    <JsonLayout compact="true" eventEol="true" />
</Socket>

```

```auto
<AsyncRoot level="INFO">
  <AppenderRef ref="socket"/>
</AsyncRoot>
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 29, 2023, 7:53am UTC](https://discuss.elastic.co/t/index-is-not-creating-in-logstash-through-mule/342100/2 "2023-09-29T07:53:38Z")

</div>

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