NXlog Exec $Hostname = hostname_fqdn(); not working

Tags:

#1 tobias42
<p>Hi everybody,</p>

<p>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&nbsp;Exec $Hostname = hostname_fqdn(); statement.</p>

<p># Nxlog internal logs<br />
&lt;Input internal&gt;<br />
&nbsp; &nbsp;Module im_internal<br />
&nbsp; &nbsp;Exec $EventReceivedTime = integer($EventReceivedTime) / 1000000; to_json();<br />
&nbsp; &nbsp;Exec $Hostname = hostname_fqdn();&nbsp;<br />
&lt;/Input&gt;</p>

<p>Still get messages with designation nxlog: internal that have a source_host with hostname only and not fqdn.</p>

<p>Either I am missing something really obvious or something is broken. Any guidance to troubleshoot or figure out what is going on much appreciated</p>

<p>Best regards</p>

<p>Tobias</p>

Please login to see replies to this post and join the discussion Login