Community discussions

MikroTik App
 
oxigeno20
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue May 23, 2006 5:29 pm
Location: Argentina

API log print detail where message ~"failed"

Tue Oct 05, 2010 10:30 pm

Hello everybody.

I'm developping an small aplication with PHP, and trying
get some result like:

Winbox Console Command:
log print detail where message ~"failed" 
The problem is than "where parameter" isn't suported in
API.

I have tested with:
 
$message = " failed";
$API->write("/log/getall",false);  
$API->write('?=message='.$message,true);
But i don't get any result.
Someone can help me please?.
Best Regards.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7054
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: API log print detail where message ~"failed"

Wed Oct 06, 2010 8:11 am

where message ~"failed"
means that regular expression is used to search through the log entry messages. In API you have to get all log entries and do the search from your APP.

Who is online

Users browsing this forum: dinosgb, djvabe, lostb1t and 125 guests