How to send data to elasticsearch using logstash?

Use the file input and the ES output.
It'll also depend on if you want to do any transformation too though/