NXlog Exec $Hostname = hostname_fqdn(); not working
Hi everybody,
stumbled over a problem that sometimes I get hostnames from nxlog other times it's fqdns. Happens only with internal nxlog messages.I tired to fix this by using the Exec $Hostname = hostname_fqdn(); statement.
# Nxlog internal logs
<Input internal>
Module im_internal
Exec $EventReceivedTime = integer($EventReceivedTime) / 1000000; to_json();
Exec $Hostname = hostname_fqdn();
</Input>
Still get messages with designation nxlog: internal that have a source_host with hostname only and not fqdn.
Either I am missing something really obvious or something is broken. Any guidance to troubleshoot or figure out what is going on much appreciated
Best regards
Tobias