<hotspot-$username> in hotspot logs same as <pppoe-$username>

Hi all,

Well, this might not be a new question and I did try to find existing questions and answers but not able to find anything good.

I need <hotspot-$username> in hotspot logs same as <pppoe-$username> when pope logs are saved to remote syslog server.

So far my best search was http://www.wirelessguru.it/en/mikrotik/mikrotik-logging-inserire-nome-utente-nelle-righe-log-gli-hotspot-pppoe-server but this is also not adding username in logs but it looks promising. May be I am missing something.

I am on routerOS 6.3 and may be about to jump on 6.4

Thanks in Advance.

Okay, this above given URL tutorial is working … after upgrade to 6.4

But the given script

/ip firewall mangle add chain=customlog src-address=$address connection-state=new action=return log=yes log-prefix=$user comment=$user

adds username in log prefix how do I add prefix in “<hotspot-$user>” format .. escaping special chars etc ..