DHCP server hostname in syslog

Hello guys,
Im new in Mikrotik so please be advised :slight_smile:
Im wondering, if its somehow possible to get active hostname of users from DHCP lease to be exported in a single line to remote syslog server? I found somewhere online this DHCP script which I’ve tried:

:log info ($leaseServerName . " " . $leaseActIP . " " . $leaseActMAC . " " . ([/ip dhcp-server lease get [find active-address=$leaseActIP] host-name]))

Result from syslog is shown in image in attachment, I need to have dhcp message in this format - Mar/12/2013 12:26:05 dhcp,info DHCP1 assigned 10.10.1.242 to 00:21:85:7A:4F:67 Dell-N5050

Thanks for help :slight_smile:
Screenshot_2022-02-07 14.21.37_3pUkeh.png