How to choose between Logstash and Fluentd in Elastic stack?

How do I decide whether to Logstash or Fluentd in elastic stack? what are the criteria?
any reference links will be helpful.