Skip to main content
Glama
monitoringartist

LogicMonitor MCP Server

list_audit_logs

Read-only

List and search audit logs to track changes, user activity, and security events in LogicMonitor for compliance and troubleshooting.

Instructions

List audit logs in LogicMonitor (LM) monitoring for compliance and security auditing.

Returns: Array of audit log entries with: id, username, IP address, timestamp (happenedOn in epoch SECONDS), description of action performed, sessionId.

When to use:

  • Investigate changes: "Who deleted this resource/device?" → filter:"description~*Delete*,description~*device*"

  • Track user activity: "What did john.doe do today?" → filter:"username:john.doe,happenedOn>1730851200"

  • Monitor API usage: Find actions performed via API tokens

  • Compliance audits: Export log history for specific time periods

  • Security investigation: Track login attempts, IP addresses, suspicious activities

  • Troubleshooting: "Who changed this alert rule?" → filter:"description~*AlertRule*"

Two search modes:

  • Simple search: Use query parameter with free text (e.g., query:"john.doe", query:"device") - searches across username, description, and IP fields

  • Advanced filtering: Use filter parameter with LM filter syntax (e.g., filter:"username:admin,happenedOn>1640995200") for precise control

Common filter patterns:

  • By user: filter:"username:john.doe"

  • By time: filter:"happenedOn>1640995200" (IMPORTANT: epoch SECONDS, not milliseconds!)

  • By action type: filter:"description~*Create*" or filter:"description~*Delete*" or filter:"description~*Update*"

  • By resource: filter:"description~*device*" or filter:"description~*dashboard*"

  • By IP: filter:"ip:192.168.1.100"

  • Combined (AND): filter:"username:admin,happenedOn>1640995200,description~*device*"

Query vs Filter:

  • query: Simple text search across username, description, IP (OR logic). Use for quick lookups: query:"john.doe", query:"device"

  • filter: Precise LM filter syntax with any field. Use for time ranges, exact matches: filter:"happenedOn>1640995200"

  • If both provided, query is converted to filter and combined with provided filter using AND logic

Critical notes:

  • Time uses epoch SECONDS (not milliseconds like other LM APIs)

  • Cannot use OR operator (||) in audit logs, only AND (comma)

  • Use autoPaginate:true for complete history (may take time for large datasets)

Web UI access: https://mycompany.logicmonitor.com/santaba/uiv4/settings/access-logs (Settings → Audit Logs)

Important: A negative "total" value in the response indicates incomplete results. Use pagination (size/offset parameters) or set autoPaginate: true to retrieve all items.

Related tools: "get_audit_log" (details of specific entry).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoSimple search query. Free text (e.g., "john.doe", "device", "192.168.1.100") automatically searches across username, description, and IP fields. Can also use filter syntax (e.g., "username:admin") which gets formatted automatically.
sizeNoNumber of results per page (default: 50, max: 1000).
offsetNoStarting offset for pagination (default: 0). Use this to skip a specific number of results.
autoPaginateNoAutomatically fetch all pages (default: false). When true, fetches all results across multiple pages. When false, returns only the requested page. Use false for large result sets to avoid long response times.
filterNoFilter expression using LogicMonitor query syntax. Examples: name:*prod*, displayName~*server*, id>100, hostStatus:normal. Available operators: : (equals), ~ (includes), !: (not equals), !~ (not includes), >: (greater than or equals), <: (less than or equals), > (greater than), < (less than). Multiple conditions: Use comma (,) for AND, use || for OR. Do NOT use &&.
fieldsNoComma-separated list of fields to include in response. Examples: "id,displayName,hostStatus" or use "*" for all fields. Omit this parameter to receive a curated set of commonly used fields.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses important behaviors: time in epoch seconds, no OR operator, autoPaginate handling, negative total meaning incomplete results, and query-filter interaction. Annotations only provide readOnlyHint, so description adds significant value beyond that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with bullet points and sections. Some redundancy (e.g., web UI access) but overall efficient given complexity. Could be slightly more concise but not excessively long.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers all aspects: return format, search modes, filter patterns, pitfalls, pagination, and integration with other tools. No output schema, but description fully compensates. Complete for an agent to use effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage, but description adds rich examples and nuanced explanations for each parameter (e.g., query vs. filter usage, filter syntax, autoPaginate implications). Far exceeds schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists audit logs for compliance and security auditing, with specific verb (list) and resource (audit logs). It distinguishes from sibling 'get_audit_log' which retrieves details of a specific entry.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides extensive guidance on when to use (investigate changes, track user activity, etc.), two search modes (simple vs. advanced), common filter patterns, and explicitly mentions related tool 'get_audit_log'. Includes when to use query vs. filter with examples.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/monitoringartist/logicmonitor-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server