Amazon CloudWatch Cloudwatch Log Pattern API

The Cloudwatch Log Pattern API from Amazon CloudWatch — 5 operation(s) for cloudwatch log pattern.

GitHub OpenAPI

Operations 5

POST /#CreateLogPattern Create Log Pattern #
POST /#DeleteLogPattern Delete Log Pattern #
POST /#DescribeLogPattern Describe Log Pattern #
POST /#ListLogPatterns List Log Patterns #
POST /#UpdateLogPattern Update Log Pattern #

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/amazon-cloudwatch:amazon-cloudwatch-log-pattern-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

amazon-cloudwatch-log-pattern-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon CloudWatch Log Pattern API
  version: '2010-08-01'
  description: Generated from AWS's published Smithy model for Amazon CloudWatch. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://applicationinsights.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateLogPattern:
    post:
      operationId: CreateLogPattern
      summary: Create Log Pattern
      description: Adds an log pattern to a LogPatternSet.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateLogPatternResponse'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsInternalServerException'
        '400':
          description: ResourceInUseException; ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceInUseException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsResourceNotFoundException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - EC2WindowsBarleyService.CreateLogPattern
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateLogPatternRequest'
      tags:
      - Log Pattern
  /#DeleteLogPattern:
    post:
      operationId: DeleteLogPattern
      summary: Delete Log Pattern
      description: Removes the specified log pattern from a LogPatternSet.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeleteLogPatternResponse'
        '400':
          description: BadRequestException; ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsResourceNotFoundException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - EC2WindowsBarleyService.DeleteLogPattern
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteLogPatternRequest'
      tags:
      - Log Pattern
  /#DescribeLogPattern:
    post:
      operationId: DescribeLogPattern
      summary: Describe Log Pattern
      description: Describe a specific log pattern from a LogPatternSet.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DescribeLogPatternResponse'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - EC2WindowsBarleyService.DescribeLogPattern
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DescribeLogPatternRequest'
      tags:
      - Log Pattern
  /#ListLogPatterns:
    post:
      operationId: ListLogPatterns
      summary: List Log Patterns
      description: Lists the log patterns in the specific log LogPatternSet.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListLogPatternsResponse'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - EC2WindowsBarleyService.ListLogPatterns
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListLogPatternsRequest'
      tags:
      - Log Pattern
  /#UpdateLogPattern:
    post:
      operationId: UpdateLogPattern
      summary: Update Log Pattern
      description: Adds a log pattern to a LogPatternSet.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UpdateLogPatternResponse'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsInternalServerException'
        '400':
          description: ResourceInUseException; ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceInUseException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ApplicationinsightsResourceNotFoundException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - EC2WindowsBarleyService.UpdateLogPattern
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UpdateLogPatternRequest'
      tags:
      - Log Pattern
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: applicationinsights
  schemas:
    ApplicationinsightsInternalServerException:
      type: object
      properties:
        Message:
          type: string
    ApplicationinsightsResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
    ApplicationinsightsValidationException:
      type: object
      properties:
        Message:
          type: string
    BadRequestException:
      type: object
      properties:
        Message:
          type: string
    CreateLogPatternRequest:
      type: object
      properties:
        ResourceGroupName:
          type: string
          description: The name of the resource group.
        PatternSetName:
          type: string
          description: The name of the log pattern set.
        PatternName:
          type: string
          description: The name of the log pattern.
        Pattern:
          type: string
          description: The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference
            constructions are not supported.
        Rank:
          type: integer
          description: Rank of the log pattern. Must be a value between 1 and 1,000,000. The patterns are sorted by rank,
            so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank 1 will be
            the first to get matched to a log line. A pattern of rank 1,000,000 will be last to get matched. When you configure
            custom log patterns from the console, a Low severity pattern translates to a 750,000 rank. A Medium severity pattern
            translates to a 500,000 rank. And a High severity pattern translates to a 250,000 rank. Rank values less than
            1 or greater than 1,000,000 are reserved for Ama
      required:
      - ResourceGroupName
      - PatternSetName
      - PatternName
      - Pattern
      - Rank
    CreateLogPatternResponse:
      type: object
      properties:
        LogPattern:
          $ref: '#/components/schemas/LogPattern'
        ResourceGroupName:
          type: string
          description: The name of the resource group.
    DeleteLogPatternRequest:
      type: object
      properties:
        ResourceGroupName:
          type: string
          description: The name of the resource group.
        PatternSetName:
          type: string
          description: The name of the log pattern set.
        PatternName:
          type: string
          description: The name of the log pattern.
      required:
      - ResourceGroupName
      - PatternSetName
      - PatternName
    DeleteLogPatternResponse:
      type: object
      properties: {}
    DescribeLogPatternRequest:
      type: object
      properties:
        ResourceGroupName:
          type: string
          description: The name of the resource group.
        PatternSetName:
          type: string
          description: The name of the log pattern set.
        PatternName:
          type: string
          description: The name of the log pattern.
        AccountId:
          type: string
          description: The Amazon Web Services account ID for the resource group owner.
      required:
      - ResourceGroupName
      - PatternSetName
      - PatternName
    DescribeLogPatternResponse:
      type: object
      properties:
        ResourceGroupName:
          type: string
          description: The name of the resource group.
        AccountId:
          type: string
          description: The Amazon Web Services account ID for the resource group owner.
        LogPattern:
          $ref: '#/components/schemas/LogPattern'
    ListLogPatternsRequest:
      type: object
      properties:
        ResourceGroupName:
          type: string
          description: The name of the resource group.
        PatternSetName:
          type: string
          description: The name of the log pattern set.
        MaxResults:
          type: integer
          description: The maximum number of results to return in a single call. To retrieve the remaining results, make another
            call with the returned NextToken value.
        NextToken:
          type: string
          description: The token to request the next page of results.
        AccountId:
          type: string
          description: The Amazon Web Services account ID for the resource group owner.
      required:
      - ResourceGroupName
    ListLogPatternsResponse:
      type: object
      properties:
        ResourceGroupName:
          type: string
          description: The name of the resource group.
        AccountId:
          type: string
          description: The Amazon Web Services account ID for the resource group owner.
        LogPatterns:
          type: array
          items:
            $ref: '#/components/schemas/LogPattern'
          description: The list of log patterns.
        NextToken:
          type: string
          description: The token used to retrieve the next page of results. This value is null when there are no more results
            to return.
    LogPattern:
      type: object
      properties:
        PatternSetName:
          type: string
          description: 'The name of the log pattern. A log pattern name can contain as many as 30 characters, and it cannot
            be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.'
        PatternName:
          type: string
          description: 'The name of the log pattern. A log pattern name can contain as many as 50 characters, and it cannot
            be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.'
        Pattern:
          type: string
          description: A regular expression that defines the log pattern. A log pattern can contain as many as 50 characters,
            and it cannot be empty. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference
            constructions are not supported.
        Rank:
          type: integer
          description: Rank of the log pattern. Must be a value between 1 and 1,000,000. The patterns are sorted by rank,
            so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank 1 will be
            the first to get matched to a log line. A pattern of rank 1,000,000 will be last to get matched. When you configure
            custom log patterns from the console, a Low severity pattern translates to a 750,000 rank. A Medium severity pattern
            translates to a 500,000 rank. And a High severity pattern translates to a 250,000 rank. Rank values less than
            1 or greater than 1,000,000 are reserved for Ama
    ResourceInUseException:
      type: object
      properties:
        Message:
          type: string
    UpdateLogPatternRequest:
      type: object
      properties:
        ResourceGroupName:
          type: string
          description: The name of the resource group.
        PatternSetName:
          type: string
          description: The name of the log pattern set.
        PatternName:
          type: string
          description: The name of the log pattern.
        Pattern:
          type: string
          description: The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference
            constructions are not supported.
        Rank:
          type: integer
          description: Rank of the log pattern. Must be a value between 1 and 1,000,000. The patterns are sorted by rank,
            so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank 1 will be
            the first to get matched to a log line. A pattern of rank 1,000,000 will be last to get matched. When you configure
            custom log patterns from the console, a Low severity pattern translates to a 750,000 rank. A Medium severity pattern
            translates to a 500,000 rank. And a High severity pattern translates to a 250,000 rank. Rank values less than
            1 or greater than 1,000,000 are reserved for Ama
      required:
      - ResourceGroupName
      - PatternSetName
      - PatternName
    UpdateLogPatternResponse:
      type: object
      properties:
        ResourceGroupName:
          type: string
          description: The name of the resource group.
        LogPattern:
          $ref: '#/components/schemas/LogPattern'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/application-insights/service/2018-11-25/application-insights-2018-11-25.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)