Skip to content

Commit 58d1869

Browse files
committed
Add systemd's _HOSTNAME field as hostname to log events
See #16
1 parent 8ae65f6 commit 58d1869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config-reloader/templates/systemd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
tag systemd.unit
1111
read_from_head false
1212
<entry>
13-
field_map {"_SYSTEMD_UNIT": "unit", "MESSAGE": "log", "_PID": ["pid"], "_PRIORITY": "priority", "_COMM": "cmd"}
13+
field_map {"_SYSTEMD_UNIT": "unit", "MESSAGE": "log", "_PID": ["pid"], "_PRIORITY": "priority", "_COMM": "cmd", "_HOSTNAME": "hostname" }
1414
field_map_strict true
1515
fields_lowercase true
1616
</entry>

0 commit comments

Comments
 (0)