Django syncs to ElasticSearch even when logstash container is removed?

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
  2. docker kill - docker container ls - confirmed removed logstash container
  3. http://localhost:8000/paf/addressuploader/ POST Django app uploaded sample addresses
  4. 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:

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 }
}

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