Logstash getting wrong hostname?

Somehow I've figured it out.
Logstash will get whatever the first hostname from /etc/hosts file for 127.0.0.1 record.
It doesn't quite make sense and weird though... :pensive: