[admin@Orbit] /log> print where message~"failed"
14:35:04 pppoe,ppp,info <pppoe-0>: terminating... - user ajcorrea authentication failed
14:35:35 pppoe,ppp,info <pppoe-0>: terminating... - user ajcorrea authentication failed
14:36:06 pppoe,ppp,info <pppoe-0>: terminating... - user ajcorrea authentication failed
14:36:37 pppoe,ppp,info <pppoe-0>: terminating... - user ajcorrea authentication failed
with API:
Code: Select all
<?php
require('/ondasys/phplibs/mikrotikapi.class.php');
$API = new routeros_api();
$API->debug = true;
if ($API->connect('xxxx', 'xxx', 'xxx')) {
$ARRAY = $API->comm('/log/print',array("~message"=>"authentication failed"));
print_r($ARRAY);
$API->disconnect();
}
?>
... filtering logs are possible with API ?!
thanks !!!!