Please format your code using </>
icon as explained in this guide. It will make your post more readable.
Or use markdown style like:
```
CODE
```
I moved your question to #elasticsearch as it's not related to #graph.
I'd recommend changing your index process and for example use a logstash mutate filter to simply remove the point from your document at index time.