Hi
I picked up the following script that allowed me to group
together into one single log line three details pertaining
to a hotspot user:
:local who $user;
:local macaddr [/ip hotspot active get [find user=$who] mac-address];
:local ipaddr [/ip hotspot host get [find mac-address=$macaddr] address];
:log info (“utilisateur: [”.$who.“] - adresse IP: [”.$ipaddr.“] - adresse MAC: [”.$macaddr.“]”);
My question is the following: “how can I redirect the
output from the log line to a remote location” ?
thanks
yann
you can do with action remote in system–>loggin menu for info topic.
http://wiki.mikrotik.com/wiki/Manual:System/Log
the problem is that all loging info topic are send to remote syslog.
Well, actually, initial tests lead me to believe that
it won’t be all “info”, but rather “script, info”
that will be redirected by my custom action,
which is really all I was looking for
thanks c0d3rSh3ll
Hello, Sorry for the long explanation, I think what I am looking for is Automatically provisioning RouterBoards as CPE devices for auto VPN connections back to the main office from the remote client office