Community discussions

MikroTik App
User avatar
just joined
Topic Author
Posts: 1
Joined: Wed Jan 31, 2024 2:38 pm

Rest API - Logout

Fri Feb 02, 2024 1:49 am

I've made a few python scripts to gather monitoring data and also to manage some WireGuard tunnels.

Every time the scripts connect, it creates a "Active User" entry, and as the scripts run quite often I have a massive list of Active Users, which are not actually active any more. Is there a way I can do a log out after I've finished interacting with the REST API to clear down the "Active User" list, as if this runs for weeks, the list looks like it'll become a mile long, as it's not cleared any since it last rebooted. I've looked at the documentation and I see no mention of doing a logout, but surely there's a way to clear this list down 😅

Below are screenshots some of these connections in the list, and they've been there for over 24 hours now.
You do not have the required permissions to view the files attached to this post.
just joined
Posts: 5
Joined: Thu Jan 19, 2017 11:50 am

Re: Rest API - Logout

Sat Feb 24, 2024 12:51 pm

Did you ever find a solution to this, I have this issue as well. my active users is over 1,500 now
User avatar
just joined
Posts: 15
Joined: Fri Feb 23, 2024 3:57 pm
Location: Poland

Re: Rest API - Logout

Tue Mar 05, 2024 12:54 am

You can find solution in viewtopic.php?p=977598#p977598

Who is online

Users browsing this forum: No registered users and 10 guests