Filebeats/Logstash compatibility

Is there any documentation on version compatibility between LogStash and Filebeat for upgrading?

For example, I have a currently running system using logstash 2.3, and Filebeat 1.2.

How should I proceed with an upgrade to logstash/filebeat (5.0). i.e. Should I upgrade all of the Filebeat to 5.0, then upgrade logstash last? Or upgrade logstash server first, and then upgrade all the filebeat? Is logstash 5.0 compatible with filebeat 1.2, and is filebeas 5.0 compatible with logstash 2.3?

Thanks

See https://www.elastic.co/support/matrix#show_compatibility.

Perfect, thanks