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
Exec $EventReceivedTime = integer($EventReceivedTime) / 1000000; to_json();
Exec $Hostname = hostname_fqdn();
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