Add IP Address (Community Edition)

Tags:

#1 JDiaz

Hi!

Newbie on NXlog here. I'm trying to add the IP Address to the logs that I'm sending but I couldn't found any funcionality to do this (at least on the Community Edition). Is there any way to do that with the CE? Something like $ip = whats_my_ip?() ?

Thanks a lot!

#2 JDiaz
#1 JDiaz
Hi! Newbie on NXlog here. I'm trying to add the IP Address to the logs that I'm sending but I couldn't found any funcionality to do this (at least on the Community Edition). Is there any way to do that with the CE? Something like $ip = whats_my_ip?() ? Thanks a lot!

I answer to myself

$ip = host_ip();

https://docs.nxlog.co/ce/current/index.html