Skip to content

Commit

Permalink
Add systemd's _HOSTNAME field as hostname to log events
Browse files Browse the repository at this point in the history
See #16
  • Loading branch information
jvassev committed Jul 5, 2018
1 parent 8ae65f6 commit 58d1869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config-reloader/templates/systemd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
tag systemd.unit
read_from_head false
<entry>
field_map {"_SYSTEMD_UNIT": "unit", "MESSAGE": "log", "_PID": ["pid"], "_PRIORITY": "priority", "_COMM": "cmd"}
field_map {"_SYSTEMD_UNIT": "unit", "MESSAGE": "log", "_PID": ["pid"], "_PRIORITY": "priority", "_COMM": "cmd", "_HOSTNAME": "hostname" }
field_map_strict true
fields_lowercase true
</entry>
Expand Down

0 comments on commit 58d1869

Please sign in to comment.