# Logs not being sent to logstash from .net application

**URL:** https://discuss.elastic.co/t/logs-not-being-sent-to-logstash-from-net-application/291401
**Category:** Logstash
**Tags:** docker, language-clients
**Created:** [December 10, 2021, 8:31am UTC](https://discuss.elastic.co/t/logs-not-being-sent-to-logstash-from-net-application/291401 "2021-12-10T08:31:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Murad000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/murad000/32/98667_2.png) [@Murad000](https://discuss.elastic.co/u/Murad000)
#### Post date: [December 10, 2021, 8:31am UTC](https://discuss.elastic.co/t/logs-not-being-sent-to-logstash-from-net-application/291401/1 "2021-12-10T08:31:45Z")

</div>

Hello,  
I launched elk stack on docker but logstash isn't receiving any logs from my application.  
I cloned [this](https://github.com/roman-pavlov/docker-elk/tree/serilog-test#host-setup) repo,added `RUN logstash-plugin install logstash-input-http` to the logstash's Dockerfile and changed the config file to look like this:

```auto
	http {
		port => 8080
	}
}

## Add your filters / logstash plugins configuration here

output {
	elasticsearch {
		hosts => "elasticsearch:9200"
		index => "customer-%{xxxx.ww}"
		user => "elastic"
		password => "changeme"
	}
}

```

when I send logs to [http://localhost:8080](http://localhost:8080),they don't show up on kibana.However,If I open the logstash shell from docker desktop and send POST request via curl to [http://localhost:8080](http://localhost:8080) with some json body,it shows up on kibana.  
This is how my logs look like:

````auto
[12:31:12 INF] {"FirstName": "Aliyah", "LastName": "Murphy", "SSNumber": "534-84-4378", "$type": "Customer"} registered
[12:31:13 INF] {"FirstName": "Donavon", "LastName": "Roob", "SSNumber": "451-01-8812", "$type": "Customer"} registered```
````

---

<div class="post-metadata">

### Author: ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)
#### Post date: [December 10, 2021, 2:31pm UTC](https://discuss.elastic.co/t/logs-not-being-sent-to-logstash-from-net-application/291401/2 "2021-12-10T14:31:48Z")

</div>

Did you expose port 8080 outside of the docker container?

---

<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: [January 7, 2022, 2:32pm UTC](https://discuss.elastic.co/t/logs-not-being-sent-to-logstash-from-net-application/291401/3 "2022-01-07T14:32:42Z")

</div>

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