LogicMonitor Event Sources API

The Event Sources API from LogicMonitor — 4 operation(s) for event sources.

GitHub OpenAPI
Business capability
Observability Management BC-4220.20

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /setting/eventsources List event sources · get eventSource list #
Ask an LLM
“Which event sources are configured in LogicMonitor?”
“Can I filter the event source list?”
Tell an agent
List all event sources.
Show event sources matching {filter}.
POST /setting/eventsources Create an event source · Add event source #
Ask an LLM
“How do I add a new event source for Windows Event Log?”
“Can I set filters and alert levels when creating an event source?”
Tell an agent
Create event source {name} using collector {collector}.
Add event source {name} with alert effective interval {alertEffectiveIval}.
POST /setting/eventsources/importxml Import event sources from XML · import eventsource via xml #
Ask an LLM
“Can I bulk import event sources from an XML file?”
“What happens if an event source already exists during an XML import?”
Tell an agent
Import event sources from XML file {file}.
Bulk load event sources from the XML file {file}.
POST /setting/eventsources/importjson Import event sources from JSON · Import EventSource via json #
Ask an LLM
“Can I import event sources using JSON instead of XML?”
“Is there a way to handle conflicts when importing event sources as JSON?”
Tell an agent
Import event sources from JSON file {file}.
Import event sources from JSON {file} and handle conflicts with {handleConflict}.
PATCH /setting/eventsources/{id} Update an event source · Update event source by ID #
Ask an LLM
“Can I change just the alert interval on an event source without resending everything?”
“How do I suppress duplicate alerts on an existing event source?”
Tell an agent
Patch event source {id} to alert interval {alertEffectiveIval}.
Set suppress duplicates to {suppressDuplicatesES} on event source {id}.
GET /setting/eventsources/{id} Get an event source · Get event source by ID #
Ask an LLM
“How do I view one event source's configuration?”
“Can I fetch an event source by ID?”
Tell an agent
Get event source {id}.
Show the configuration of event source {id}.
DELETE /setting/eventsources/{id} Delete an event source · Delete event source by ID #
Ask an LLM
“How do I remove an event source?”
“Can I delete an event source by its ID?”
Tell an agent destructive · confirm first
Delete event source {id}.
Remove the event source {id}.
PUT /setting/eventsources/{id} Replace an event source · Update event source by ID #
Ask an LLM
“How do I overwrite an event source's full configuration?”
“Can I change the collector type on an existing event source?”
Tell an agent
Replace event source {id} with name {name} and alert interval {alertEffectiveIval}.
Overwrite event source {id} using collector {collector}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/logicmonitor:logicmonitor-event-sources-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

logicmonitor-event-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Logicmonitor Event Sources API
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
  description: 'Operations tagged EventSources across 2 of this provider''s published API definitions: logicmonitor-rest-api-v2-swagger.json, logicmonitor-rest-api-v3-swagger.json. Each path carries the servers of the definition it was published in.'
servers:
- url: /santaba/rest
tags:
- name: Event Sources
paths:
  /setting/eventsources:
    get:
      summary: get eventSource list
      security:
      - LMv1: []
      description: ''
      operationId: getEventSourceList
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventSourcePaginationResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      parameters:
      - in: query
        name: format
        required: false
        schema:
          type: string
          default: json
      - in: query
        name: fields
        required: false
        schema:
          type: string
      - in: query
        name: size
        required: false
        schema:
          type: integer
          format: int32
          default: 50.0
      - in: query
        name: offset
        required: false
        schema:
          type: integer
          format: int32
          default: 0.0
      - in: query
        name: filter
        required: false
        schema:
          type: string
      tags:
      - Event Sources
    post:
      summary: Add event source
      security:
      - LMv1: []
      x-minimum-permissions:
        Modules -> All Installed modules: Manage
        Modules -> Access Groups: Manage
      description: Adds a new event source
      operationId: addEventSource
      responses:
        '200':
          description: Successfully added new event source
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventSource_2'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Event Sources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventSource_2'
    servers:
    - url: /santaba/rest
  /setting/eventsources/importxml:
    post:
      summary: import eventsource via xml
      security:
      - LMv1: []
      description: ''
      operationId: importEventSource
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Event Sources
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
              required:
              - file
    servers:
    - url: /santaba/rest
  /setting/eventsources/importjson:
    post:
      summary: Import EventSource via json
      security:
      - LMv1: []
      x-minimum-permissions:
        Modules -> Default Access Group: Manage
        Modules ->  All Installed modules: Manage
      description: Import a EventSource using json data
      operationId: importEventSourceJson
      responses:
        '200':
          description: Successfully imported the EventSource via Json
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventSource_2'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      parameters:
      - in: query
        name: handleConflict
        schema:
          type: string
      - in: query
        name: fieldsToPreserve
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      tags:
      - Event Sources
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
    servers:
    - url: /santaba/rest
  /setting/eventsources/{id}:
    patch:
      summary: Update event source by ID
      security:
      - LMv1: []
      x-minimum-permissions:
        Modules -> All Installed modules: Manage
        Modules -> Access Groups: Manage
      description: Updates the event source with the provided ID
      operationId: patchEventSourceById
      responses:
        '200':
          description: Successfully updated event source by ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventSource_2'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      - in: query
        name: reason
        schema:
          type: string
      tags:
      - Event Sources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventSource_2'
    get:
      summary: Get event source by ID
      security:
      - LMv1: []
      x-minimum-permissions:
        Modules -> All Installed modules: View
        Modules -> Access Groups: View
      description: Retrieves an event source by its ID
      operationId: getEventSourceById
      responses:
        '200':
          description: Successfully retrieved event source by ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventSource_2'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      - in: query
        name: format
        schema:
          type: string
      tags:
      - Event Sources
    delete:
      summary: Delete event source by ID
      security:
      - LMv1: []
      x-minimum-permissions:
        Modules -> All Installed modules: Manage
        Modules -> Access Groups: Manage
      description: Deletes an event source by its ID
      operationId: deleteEventSourceById
      responses:
        '200':
          description: Successfully deleted event source by ID
          content:
            application/json:
              schema:
                type: object
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      tags:
      - Event Sources
    put:
      summary: Update event source by ID
      security:
      - LMv1: []
      x-minimum-permissions:
        Modules -> All Installed modules: Manage
        Modules -> Access Groups: Manage
      description: Updates the event source with the provided ID
      operationId: updateEventSourceById
      responses:
        '200':
          description: Successfully updated event source by ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventSource_2'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
          format: int32
      - in: query
        name: reason
        schema:
          type: string
      tags:
      - Event Sources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventSource_2'
    servers:
    - url: /santaba/rest
components:
  schemas:
    RestEventSourceFilter:
      type: object
      properties:
        name:
          type: string
        comment:
          type: string
        id:
          format: int32
          type: integer
        value:
          type: string
        operator:
          type: string
    EventSourcePaginationResponse:
      type: object
      properties:
        total:
          format: int32
          readOnly: true
          type: integer
        searchId:
          readOnly: true
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/EventSource'
    EventSource:
      type: object
      required:
      - alertEffectiveIval
      - id
      - name
      properties:
        suppressDuplicatesES:
          description: Whether or not duplicate alerts should be suppressed at eventsource level
          type: boolean
        alertSubjectTemplate:
          description: The alert message subject for the EventSource
          type: string
        alertLevel:
          description: 'The default alert level: warn | error |critical'
          type: string
        description:
          description: The description for the LMModule
          type: string
        appliesTo:
          description: The Applies To for the LMModule
          type: string
        technology:
          description: The Technical Notes for the LMModule
          type: string
        filters:
          description: The filters for the EventSource
          type: array
          items:
            $ref: '#/components/schemas/RestEventSourceFilter'
        version:
          format: int64
          description: The epoch time of the last update to the EventSource
          readOnly: true
          type: integer
        collector:
          description: 'The EventSource type: logfile | snmptrap | syslog | wineventlog | scriptevent'
          type: string
        tags:
          description: The Tags for the LMModule
          type: string
        alertBodyTemplate:
          description: The alert message body for the EventSource
          type: string
        name:
          description: The name of the EventSource
          type: string
        clearAfterAck:
          description: Whether or not the alert should clear after acknowledgement
          type: boolean
        id:
          format: int32
          description: The ID of the LMModule
          readOnly: true
          type: integer
        alertEffectiveIval:
          format: int32
          description: The time in minutes after which the alert should clear
          type: integer
        group:
          description: The group the LMModule is in
          type: string
      discriminator:
        propertyName: collector
    ErrorResponse:
      type: object
      properties:
        errorMessage:
          description: The error message
          readOnly: true
          type: string
        errorCode:
          format: int32
          description: The error code
          readOnly: true
          type: integer
        errorDetail:
          description: The error detail
          readOnly: true
          type: object
    IntegrationMetadata:
      description: The local module's IntegrationMetadata, readable for troubleshooting purposes
      readOnly: true
      type: object
      properties:
        targetLastPublishedId:
          description: Specifies the target last published Id
          readOnly: true
          type: string
        targetLastPublishedChecksum:
          description: The metadata checksum for the target last published LMModule content
          readOnly: true
          type: string
        targetLastPublishedVersion:
          description: Specifies the target last published version
          readOnly: true
          type: string
        originChecksum:
          description: The metadata checksum for the LMModule content
          readOnly: true
          type: string
        originAuthorNamespace:
          description: Specifies the origin Author companies namespace
          readOnly: true
          type: string
        originLocator:
          description: Specifies the origin version locator
          readOnly: true
          type: string
        isChangedFromOrigin:
          description: Specifies if the Applies To function is changed from origin or not
          readOnly: true
          type: boolean
        auditedRegistryId:
          description: Specifies the audited registry Id
          readOnly: true
          type: string
        targetLineageId:
          description: Specifies the target lineage Id
          readOnly: true
          type: string
        logicModuleType:
          description: 'The values can be DataSources | EventSources | PropertySources | ConfigSources | LogSources | TopologySources | Jobmonitors | AppliesTo Functions | SNMP SysOID Maps

            The type of LogicModule'
          readOnly: true
          type: string
          enum:
          - DATASOURCE
          - EVENTSOURCE
          - CONFIGSOURCE
          - PROPERTYSOURCE
          - DIAGNOSTICSOURCE
          - REMEDIATIONSOURCE
          - TOPOLOGYSOURCE
          - JOBMONITOR
          - APPLIESTO_FUNCTION
          - SNMP_SYSOID_MAP
          - LOGSOURCE
        isChangedFromTargetLastPublished:
          description: Specifies if the Applies To function is changed from target last published or not
          readOnly: true
          type: boolean
        originLineageId:
          description: The origin lineage Id of the LMmodule
          readOnly: true
          type: string
        originAuthorCompanyUUID:
          description: Specifies the origin Author companies unique Id
          readOnly: true
          type: string
        localModuleId:
          format: int32
          description: The LocalModule Id
          readOnly: true
          type: integer
        originRegistryId:
          description: The Registry ID of the Exchange Integration this module is based from
          readOnly: true
          type: string
        originVersion:
          description: Specifies the origin version
          readOnly: true
          type: string
        auditedVersion:
          description: Specifies the audited registry version
          readOnly: true
          type: string
        originName:
          description: Specifies the origin module name
          readOnly: true
          type: string
    AccessGroup:
      description: Module's access groups
      type: object
      required:
      - name
      properties:
        createdBy:
          description: User who created access group
          readOnly: true
          type: string
        name:
          description: The name of the access group
          type: string
          example: LinuxGroup
        tenantId:
          description: Tenancy details
          type: string
        description:
          description: Description about access group
          type: string
        id:
          format: int32
          description: The id of the access group
          readOnly: true
          type: integer
        updatedOn:
          format: int64
          description: Time when access group updated
          readOnly: true
          type: integer
        createdOn:
          format: int64
          description: Time when access group created
          readOnly: true
          type: integer
    RestEventSourceFilter_2:
      description: The filters for the EventSource
      type: object
      required:
      - comment
      - name
      - operator
      - value
      properties:
        name:
          description: The filter name
          type: string
        comment:
          description: The filter comment
          type: string
        id:
          format: int32
          description: The filter id
          readOnly: true
          type: integer
        value:
          description: The filter value
          type: string
        operator:
          description: The filter operator
          type: string
    EventSourceFilter:
      type: object
      properties:
        eventSourceId:
          format: int32
          type: integer
        op:
          type: string
        originId:
          type: string
        name:
          type: string
        comment:
          type: string
        id:
          format: int32
          type: integer
        value:
          type: string
    EventSource_2:
      type: object
      required:
      - alertEffectiveIval
      - name
      properties:
        accessGroups:
          description: Module's access groups
          type: array
          items:
            $ref: '#/components/schemas/AccessGroup'
        eventSource:
          $ref: '#/components/schemas/EventSource_2'
        description:
          description: The description for the LMModule
          type: string
        appliesTo:
          description: The Applies To for the LMModule
          type: string
        lineageId:
          description: The lineageId the LMModule belongs to
          readOnly: true
          type: string
        collector:
          description: The EventSource collector type. The values can be wineventlog | syslog | snmptrap | echo | logfile | scriptevent | awsrss | azurerss | azureadvisor | gcpatom | awsrdspievent | azureresourcehealthevent | azureemergingissue | azureloganalyticsworkspacesevent | awstrustedadvisor | awshealth | awsorganizationalhealth | ipmievent
          type: string
        originRegistryId:
          description: The Registry ID of the Exchange Integration this module is based from, including this field will set this as the module's import base and mark the ID's version as audited
          type: string
        alertBodyTemplate:
          description: The alert message body for the EventSource
          type: string
        checksum:
          description: The metadata checksum for the LMModule content
          readOnly: true
          type: string
        id:
          format: int32
          description: The ID of the LMModule
          readOnly: true
          type: integer
        accessGroupIds:
          uniqueItems: true
          description: The Access Groups Id's
          type: array
          items:
            format: int32
            description: The Access Groups Id's
            type: integer
          example: 1, 2, 3
        group:
          description: The group the LMModule is in
          type: string
        suppressDuplicatesES:
          description: Whether or not duplicate alerts have to be suppressed
          type: boolean
        alertSubjectTemplate:
          description: The alert message subject for the EventSource
          type: string
        eventSourceFilters:
          type: array
          items:
            $ref: '#/components/schemas/EventSourceFilter'
        alertLevel:
          description: The default alert level. The values can be warn | error | critical | doMapping
          type: string
        technology:
          description: The Technical Notes for the LMModule
          type: string
        filters:
          description: The filters for the EventSource
          type: array
          items:
            $ref: '#/components/schemas/RestEventSourceFilter_2'
        version:
          format: int64
          description: The epoch time of the last update to the EventSource
          readOnly: true
          type: integer
        tags:
          description: The Tags for the LMModule
          type: string
        auditVersion:
          format: int64
          description: The auditVersion of the EventSource
          readOnly: true
          type: integer
        installationMetadata:
          description: The local module's IntegrationMetadata, readable for troubleshooting purposes
          readOnly: true
          $ref: '#/components/schemas/IntegrationMetadata'
        name:
          description: The name of the EventSource
          type: string
        clearAfterAck:
          description: Whether or not the alert should clear after acknowledgement
          type: boolean
        isInUse:
          description: Whether the LM module is currently in use
          readOnly: true
          type: boolean
        alertEffectiveIval:
          format: int32
          description: The time in minutes after which the alert should clear
          type: integer
      discriminator:
        propertyName: collector
  securitySchemes:
    LMv1:
      in: header
      name: Authorization
      type: apiKey
externalDocs:
  description: LogicMonitor Support Docs
  url: https://www.logicmonitor.com/support/rest-api-developers-guide/
x-refined-from:
- logicmonitor-rest-api-v2-swagger.json
- logicmonitor-rest-api-v3-swagger.json