Make logstash auto-determine host name

This commit is contained in:
2025-07-03 00:14:37 +02:00
parent 767f61c65c
commit 5547b46ec8
+3 -3
View File
@@ -5,7 +5,7 @@ input {
sincedb_path => "/dev/null"
add_field => {
"type" => "temperature"
"host.hostname" => "praguetopbox"
"host.hostname" => "%{HOSTNAME}"
}
}
@@ -15,7 +15,7 @@ input {
sincedb_path => "/dev/null"
add_field => {
"type" => "power"
"host.hostname" => "praguetopbox"
"host.hostname" => "%{HOSTNAME}"
}
}
@@ -25,7 +25,7 @@ input {
sincedb_path => "/dev/null"
add_field => {
"type" => "disk"
"host.hostname" => "praguetopbox"
"host.hostname" => "%{HOSTNAME}"
}
}
}