Hello,
I use Kibana with elasticsearch. I’m new to Elasticsearch. I have a php rest api with analytic values.
Although this sounds very inefficient, my plan is to query my php rest api to get hourly data year to date, and then each hour completely clear my elasticsearch index of all existing data, and repopulate it with the year to date results of the rest api.
This way, if my elasticsearch fails to pull in the rest api data on one hour, which happens, it will be fixed on the next hour.
How do I need to approach this. Is the idea that I only have one document, with say ID 1, and then I constantly remove and repopulate that document every hour?
Is there a best practice for this sort of thing?
.