CloudSignal Docs
GuidesMonitoring

Active sessions

View and manage currently connected MQTT clients in the CloudSignal dashboard.

The active sessions view shows all MQTT clients currently connected to your organization. Use it to verify connectivity, identify duplicate or stuck sessions, and forcibly disconnect clients when needed.

Accessing active sessions

  1. Log into the CloudSignal dashboard
  2. Click Sessions in the sidebar
  3. Select Active (default view)

Understanding the session list

Each active session displays:

FieldDescription
Client IDThe MQTT client identifier
UsernameThe authenticated user (without @org-id)
Connected AtWhen the session was established
IP AddressClient's source IP
ProtocolMQTT version (3.1.1, 5.0) or WebSocket
SubscriptionsNumber of active topic subscriptions

Session details

Click on a session row to view detailed information.

Connection info

  • Full client ID and username
  • Connection timestamp and duration
  • Client IP and port
  • TLS/SSL status

Subscriptions

List of topics the client is subscribed to:

agents/+/state            (QoS 1)
agents/agent-001/#        (QoS 0)
config/updates            (QoS 1)

Session state

FieldDescription
Clean sessionWhether the session state is preserved
Keep alivePing interval in seconds
Queued messagesMessages waiting for delivery

Search by client ID or username

Use the search box to find specific clients:

Search: agent-001
-> Shows all sessions with "agent-001" in client ID or username

Filter by workspace

If you have multiple workspaces, filter to see sessions for a specific workspace.

Managing sessions

Disconnect a client

To forcefully disconnect a client:

  1. Find the session in the list
  2. Click on the session row
  3. Click Disconnect
  4. Confirm the action

Disconnecting a client closes the MQTT connection immediately. If the client is configured to reconnect, it will establish a new session.

Bulk actions

Select multiple sessions to disconnect several clients at once (useful for testing or maintenance).

Common scenarios

Verify client connectivity

Check that expected clients are connected:

  1. Search for the client's ID or username
  2. Verify "Connected At" is recent
  3. Check subscription count matches expectations

Identify duplicate connections

If a client has multiple sessions:

Client ID: agent-001
Sessions: 2

Possible causes:
- Client reconnected without clean disconnect
- Multiple instances using same client ID
- Persistent session + new connection

With MQTT, each client ID should have only one active connection. If using the same client ID, the broker disconnects the older session.

Check for stuck sessions

Sessions that appear connected but the client is offline:

  1. Note the "Connected At" time
  2. Check if the keep-alive interval has passed without disconnect
  3. If stuck, manually disconnect the session

Monitor connection count

Track your active connections against plan limits:

Active sessions: 47
Plan limit: 100
Usage: 47%

Auto-refresh

The session list refreshes automatically every 30 seconds. You can also:

  • Click the refresh button for immediate update
  • Toggle auto-refresh off for static view

Exporting data

Export the session list for analysis:

  1. Click Export
  2. Choose format (CSV, JSON)
  3. Download the file
Use caseWhy export helps
Capacity planningSpot trends across days
Audit trailsRecord who was connected when
External monitoringFeed into your own analytics stack

Best practices

Naming conventions

Use descriptive client IDs for easy identification:

Client IDQuality
agent-summarizer-prod-001Clear
mobile-app-user-12345Clear
backend-processor-prodClear
client1Unclear
abc123Unclear
(randomly generated)Unclear

Monitor key metrics

Watch for:

  • Sudden drops in connection count
  • Unexpected spikes (possible reconnection storm)
  • Sessions from unknown IP addresses

Set up alerts

Configure notifications when:

  • Connection count drops below threshold
  • New connections from unexpected locations
  • Specific critical clients disconnect

Next steps

On this page