Logstash not sending syslog to elasticsearch

I used this command:

.  sudo firewall-cmd –zone-public –add-forward-port=port=514:proto=udp:toport5144

Using firewall-cmd I think all that you need is:

firewall-cmd --add-forward-port=port=514:proto=udp:toport=5144