Hi, my current logstash setup always return localhost for host field.
My system is CentOS 6.x.
I' ve set hostname in /etc/sysconfig/network and also in hostname command.
from Google, it says logstash use gethostname function to get the value.
How can I correctly set the value for hostname? Thanks.
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...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.