Write to the correct Elasticsearch index

Well, yes, I can see how that wouldn’t work.