Not performing POST when running command twice

Hi all,

I'm running es with the following command
docker run -d -p 9200:9200 -p 9300:9300 --name=elasticsearch -e "discovery.type=single-node" -v elasticsearch-data:/usr/share/elasticsearch/data docker.elastic.co/elasticsearch/elasticsearch:7.8.0 elasticsearch

I'm reading some files from an sftp server, looping through then, extracting the data I need, creating an object, and finally doing a REST POST call to elastic to insert the document. Right now I'm testing connections and the flow of my code and seems to be working as far as connection between services.

I found interesting that I have a postman collection to call my Node endpoint and ran it three or four times one the fist run gets inserted. I thought I was able to run a POST request against elastic with the same data many times and it will insert a new document every time

Any clarification on this?

Thanks

Hi @gdiaz

Perhaps you could share your
POST commands.

Have you tried the same POST commands from Kibana Dev Tools?