Community discussions

MikroTik App
 
scorpion4111
just joined
Topic Author
Posts: 18
Joined: Wed Feb 05, 2014 7:22 am

problem in api log

Wed Mar 19, 2014 2:34 am

hi i have problem in api

i want don't log api login and logout in server log how can i do this :? :? :?

Image

pls help my
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: problem in api log

Wed Mar 19, 2014 3:02 pm

The easiest way would be to add "account" as an exception to info, i.e.
/system logging set [find topics="info"] topics="info,!account"
Though keep in mind this would stop logging ANY info activity regarding login, not just via API. You wouldn't know if you've logged in via Winbox, SSH, etc.
 
scorpion4111
just joined
Topic Author
Posts: 18
Joined: Wed Feb 05, 2014 7:22 am

Re: problem in api log

Thu Mar 20, 2014 1:44 am

thanks it work but if i want remove api only !!!!! :D :D :D
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12008
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: problem in api log

Thu Mar 20, 2014 1:47 am

Try this :twisted: remove API only....
/ip service
set api disabled=yes
set api-ssl disabled=yes
:shock: Disable the API! :lol:
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: problem in api log

Thu Mar 20, 2014 3:44 pm

thanks it work but if i want remove api only !!!!!
I don't think that's possible.

You could send such logs onto a remote log server, which would in turn discard the API logs... but that still means the router itself won't store any login info.
Try this :twisted: remove API only....
/ip service
set api disabled=yes
set api-ssl disabled=yes
:shock: Disable the API! :lol:
Ha! Joker...
 
radekmacek
just joined
Posts: 6
Joined: Fri Oct 02, 2015 8:55 am

Re: problem in api log

Fri Dec 08, 2017 2:38 pm

Hello, I have the same problem. I would reduce the problem to "do not log API". Is there a way to do this, so that API is used and no logs are showed for API (or sent while using remote option)? Thanks

Who is online

Users browsing this forum: No registered users and 80 guests