What is the reason behind Django data updated to Elasticsearch when logstash container is removed?
- Initially checked no index here - (empty) http://localhost:5601/app/management/data/index_management/indices
- docker kill - docker container ls - confirmed removed logstash container
- http://localhost:8000/paf/addressuploader/ POST Django app uploaded sample addresses
- 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 }
}