Why _source host = 'localhost' , that's not my machine's host name

my logstash output result :
{
"path" => "/var/log/log_2018-3-117_submit.log",
"@version" => "1",
"status" => 0,
"host" => "localhost",
"@timestamp" => 2018-03-09T03:04:41.672Z,
"type" => "submit_log"
}

how can i set my host and use my machine host.

What kind of input produced this event? What does your /etc/hosts look like?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.