Sending IP only

Tags:

#1 mcerone

Is it possible to force the agent to send the IP address of the host in the syslog message?

Either send Only the IP or at least ensure the IP is included with the hostname.

#2 rafDeactivated Nxlog ✓
#1 mcerone
Is it possible to force the agent to send the IP address of the host in the syslog message? Either send Only the IP or at least ensure the IP is included with the hostname.

Hello,

Depending on your actual needs, you might use the host_ip() from NXLog's core functions - please refer to the docs:

[https://nxlog.co/docs/nxlog-ce/nxlog-reference-manual.html#core_funcs](https://nxlog.co/docs/nxlog-ce/nxlog-reference-manual.html#core_funcs]

and sew it into your config file.

Regards,

Rafal