I've been using Elasticsearch for a few weeks, and now I also installed Kibana to create some visualizations for my data.
I have a Python script which I open in three instances (I collect data with three different sensors, and each of them uses its own folder to save its logs) and which uses the elasticsearch-py library to add data to my local database by reading some log files from the log folders I mentioned, every few seconds. Everything works just well... until I close my scripts.
After closing the scripts, no new data should be added to the database. And now the funny part begins, because Elasticsearch keeps adding documents from all three devices, with new ids and the values from the last working POST (meaning, if the sensor reading from device no. 2 before closing was 23° C, then all subsequent entries for device no. 2 will use the same temperature - even if said device is shut down and my script closed).
I have absolutely no idea what is causing this; I've tried restarting Elasticsearch and Kibana, restarting the PC, disconnecting the sensors, even deleting the index and populating it again; it stays empty until I start adding documents, then it continues adding them the way I mentioned even after stopping everything else.
I've attached a screenshot from Kibana with the last entries; as you can see, there are entries from today at 16:04 - too bad that I shut down the sensors and every script that could make REST calls at 15:43.
I've searched everywhere but found nothing; I wouldn't be posting here if I had any idea about what could be the problem.