Connect LogicMonitor
LogicMonitor is an infrastructure monitoring platform. StackJack connects an AI assistant to the LogicMonitor REST API (version 3) of your account.
Written By Christopher Scaminaci
Last updated About 2 hours ago
LogicMonitor is an infrastructure monitoring platform. StackJack connects an AI assistant to the LogicMonitor REST API (version 3) of your account.
Connecting LogicMonitor to StackJack gives your AI assistant a family of lm_ MCP tools. MCP (Model Context Protocol) tools are the standardized commands an AI
assistant can call through StackJack. With them, your AI can:
- Watch your estate - list and read devices and device groups, their properties, datasources, instances and graph data, websites and collectors
- Work alerts - read alerts, acknowledge or escalate them, add notes, and read and change alert rules, escalation chains, recipient groups and thresholds
- Plan maintenance - schedule downtime and write ops notes
- Manage the platform - collectors and their installers, netscans, dashboards and widgets, reports, LogicModules, log partitions and pipelines
- Run the account - users, roles, API tokens, access groups, audit logs and usage
How StackJack authenticates to LogicMonitor
LogicMonitor is connected with an API token of a LogicMonitor user. You choose one of two kinds:
- LMv1 token - an access id and an access key. StackJack signs each request with the access key, so the key itself never travels.
- Bearer token - one token that StackJack sends with each request.
The token acts as the LogicMonitor user it belongs to, so every call reaches what that user's role allows.
Choosing the user
LogicMonitor refuses API calls made with tokens of lm_support users and of users with the out-of-the-box Administrator role. Use another user, with a role that
allows what you want your AI to read and change. The user needs the Allow Creation of API Tokens permission.
Creating the token
- In LogicMonitor, open Settings, then User Access, then Users and Roles.
- For an LMv1 token, open the LMv1 API Token tab and select Add API Token. For a Bearer token, open the Bearer Token tab and select Add Bearer Token.
- Select the user. LogicMonitor fills in the Bearer token, or the access id and the access key.
- Copy the access id and the access key, or the Bearer token, while the dialog is still open. Then click Save. Once you save, LogicMonitor masks part of a Bearer token, so the dialog is the only place to copy it in full; LogicMonitor also recommends saving the access key now.
Connect it in StackJack
- Open Connectors, then LogicMonitor.
- Enter your Account: the first part of the address you sign in at,
https://ACCOUNT.logicmonitor.com. You can paste the whole address instead. - Choose LMv1 token or Bearer token, then paste the access id and the access key, or the Bearer token.
- Click Save. StackJack stores the connection and then checks it: it reads the list of collector versions, which needs no role permission and changes nothing.
To check a saved connection again later, use Test on its row. When you edit the connection, paste the secret again.
What is worth knowing before you start
Role permissions
The role of the token's user decides what LogicMonitor allows. Each tool's description names the role permission it needs (for example Resources: Manage). When LogicMonitor refuses a tool for a permission, StackJack says so and does not count it against the connection.
Changes that ask for approval
A replace tool (a PUT) resets every property it does not send to its default; an update tool (a PATCH) changes only what it sends. Every replace, every delete, running a DiagnosticSource or RemediationSource, collector debug commands and restarts, scheduled downtime, acknowledging or escalating alerts, running a report or setting who it is emailed to, module imports, an update that can turn off alerting or monitoring or replace a resource's custom properties, a module write that can set access groups, and changes to users, roles, API tokens, access groups, alert routing, action rules and netscans are marked as changes that need approval before an agent can run them.
Secrets in answers
LogicMonitor properties can hold the credentials it monitors with (for example snmp.community or ssh.pass). StackJack removes the value of a property
whose name marks it as a credential (a name containing .pass, .password, .community, .key, .token or .secret, or privToken or authToken),
and returns every other property value. A value whose property name is not in the answer (for example when your AI asks only for value with
fields) is removed too. It also removes API token access keys, collector bearer tokens and installer links, website check passwords,
headers, request bodies and scripts, netscan credentials, cloud group account settings, collected configuration files and other secret fields from answers
unless your AI sets includeSecrets to true. A generated report's link is kept in the answer, but StackJack keeps those answers out of saved fixtures and
large-result files.
A collector installer carries what registers that collector to your account, so lm_get_collector_installer downloads it only when your AI sets
includeSecrets to true, and then answers a temporary download link.
Files
Three tools download a file: the collector installer and the collector logs as a zip (all of them, or one file). StackJack stores the file and answers a temporary download link that works for 30 minutes, with the file name, type and size. Files over 100 MB are refused; download a larger file from LogicMonitor itself.
Module imports (DataSources, ConfigSources, EventSources, PropertySources and the other LogicModules) take the file either as base64 or as a public https link.
Rate limits
LogicMonitor limits each kind of request per account, for every user and integration together: for example 500 GET, 200 POST, 200 PUT, 250 PATCH and 300 DELETE calls a minute, and lower limits for some calls (5 data fetches a minute). StackJack paces one account below those limits and waits when LogicMonitor asks it to. LogicMonitor can also answer "Server is busy" under heavy load; StackJack treats that as a short wait, not a fault.
When LogicMonitor refuses a call
- A permission refusal (errorCode 1403): the token works, but its user's role does not allow the call. Give the role the permission, or use another user's token.
- 401: the token was deleted, disabled or mistyped, or the account is not the token's account. With LMv1, a clock more than 30 minutes off answers the same way.
- 403: the role does not allow the call, or LogicMonitor does not allow tokens of that user.
- A record is not found (404): check the id against the matching list tool.
- A value is rejected (400): the answer names the problem.
- A conflict (409): the record already exists.
- 412: the call needs two-factor authentication the request did not satisfy.
- Rate limited (429), Server is busy or an outage (5xx): wait and try again.
Plans and limits
Reads are available on the Free tier. Every change, and every file download, is Pro. Business reaches the same tools as Pro and differs by monthly call quota.
See the generated LogicMonitor tool reference for the current inventory, plan assignment, input schemas and destructive-action labels.
LogicMonitor tools
lm_ · 405 tools · Free 182 · Pro 223
Devices
Device groups
Device datasources and instances
Data and graphs
Alert thresholds
Alerts
Alert rules
Escalation chains
Recipient groups
Action rules and chains
Scheduled downtime
Ops notes
Websites
Website groups
Collectors
Collector groups
Netscans
Dashboards
Dashboard groups
Widgets
Reports
Report groups
DataSources
ConfigSources
EventSources
PropertySources
AppliesTo functions
SysOIDMaps
TopologySources
LogSources
JobMonitors
DiagnosticSources
RemediationSources
Access groups and modules
Log query groups
Log partitions
Log processing
Tracked queries
Users
Roles
API tokens
Audit logs
Account and usage
Cost optimization
Cloud account checks
Was this helpful?
More in Connector guides
Connect 3CXConnect AbleSignConnect Acronis Cyber Protect CloudConnect Action1Still need help? Ask the team