Eep. It looks like there's something funky going on with your config/logstash.yml; can you paste what you've got?
5.4.0 is still pretty far back; if you can't upgrade to Logstash 6, you'll likely have better luck running the latest possible 5.x (which is currently 5.6.10)