I am trying to build an es cluster, can I put logstash and elasticsearch on the same host?

As I stated in the subject

Yes.

what is the downside of doing this?

High load would be the most likely.