# Django syncs to ElasticSearch even when logstash container is removed?

**URL:** <https://discuss.elastic.co/t/django-syncs-to-elasticsearch-even-when-logstash-container-is-removed/313878>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [September 7, 2022, 11:29am UTC](https://discuss.elastic.co/t/django-syncs-to-elasticsearch-even-when-logstash-container-is-removed/313878 "2022-09-07T11:29:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scheung38](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scheung38/32/14795_2.png) [@scheung38](https://discuss.elastic.co/u/scheung38)\
**Post date:** [September 7, 2022, 11:29am UTC](https://discuss.elastic.co/t/django-syncs-to-elasticsearch-even-when-logstash-container-is-removed/313878/1 "2022-09-07T11:29:27Z")

</div>

What is the reason behind Django data updated to Elasticsearch when logstash container is removed?

1. Initially checked no index here - (empty) [http://localhost:5601/app/management/data/index\_management/indices](http://localhost:5601/app/management/data/index_management/indices)
2. docker kill - docker container ls - confirmed removed logstash container
3. [http://localhost:8000/paf/addressuploader/](http://localhost:8000/paf/addressuploader/) POST Django app uploaded sample addresses
4. [http://localhost:5601/app/management/data/index\_management/indices](http://localhost:5601/app/management/data/index_management/indices) - created:

So this confirms usage without logstash currently, then how to make sure

Django -\> logstash -\> Elasticsearch instead of

Django -\> Elasticsearch

This is my logstash.conf:

```auto
input {

    tcp {
        port => 5959
        codec => json
        mode => server
    }
}

filter {
    json {
        source => "message"
    }
}

output {
    elasticsearch {
        hosts => ["http://elasticsearch:9200"]
        index => "address*"
        manage_template => true
    }
    stdout { codec => rubydebug }
}

```

---

<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:** [October 5, 2022, 11:30am UTC](https://discuss.elastic.co/t/django-syncs-to-elasticsearch-even-when-logstash-container-is-removed/313878/2 "2022-10-05T11:30:16Z")

</div>

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