MCP Sumo Logic Server

by samwang0723

Integrations

  • Provides containerization support for easy deployment of the MCP server in Docker environments with configuration through environment variables.

  • Enables searching and querying of Sumo Logic logs using custom queries with configurable time ranges, allowing access to log data stored in Sumo Logic's platform.

MCP スモロジック

Sumo Logic の API と統合してログ検索を実行するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • カスタムクエリを使用してSumo Logicログを検索する
  • 検索の時間範囲を設定可能
  • エラー処理と詳細なログ記録
  • 簡単に導入できるDockerサポート

環境変数

ENDPOINT=https://api.au.sumologic.com/api/v1 # Sumo Logic API endpoint SUMO_API_ID=your_api_id # Sumo Logic API ID SUMO_API_KEY=your_api_key # Sumo Logic API Key

設定

  1. リポジトリをクローンする
  2. 依存関係をインストールします:
    npm install
  3. 必要な環境変数を含む.envファイルを作成する
  4. プロジェクトをビルドします。
    npm run build
  5. サーバーを起動します。
    npm start

Dockerのセットアップ

  1. Docker イメージをビルドします。
    docker build -t mcp/sumologic .
  2. コンテナを実行します (1 つの方法を選択):a. 環境変数を直接使用する:
    docker run -e ENDPOINT=your_endpoint -e SUMO_API_ID=your_api_id -e SUMO_API_KEY=your_api_key mcp/sumologic
    b. .env ファイルを使用する:
    docker run --env-file .env mcp/sumologic
    注: .env ファイルに必要な環境変数が含まれていることを確認してください。
    ENDPOINT=your_endpoint SUMO_API_ID=your_api_id SUMO_API_KEY=your_api_key

使用法

サーバーは、次のパラメータを受け入れるsearch-sumologicツールを公開します。

  • query (必須): Sumo Logicの検索クエリ
  • from (オプション): ISO 8601形式の開始時刻
  • to (オプション): ISO 8601形式の終了時刻

クエリの例:

const query = '_index=app_pro_fiat_cont | json auto | fields log_identifier'; const results = await search(sumoClient, query, { from: '2024-02-23T00:00:00Z', to: '2024-02-24T00:00:00Z', });

エラー処理

サーバーには包括的なエラー処理とログ記録が含まれています。

  • APIエラーがキャッチされ、詳細とともにログに記録されます
  • 検索ジョブのステータスが監視され、記録されます
  • ネットワークと認証の問題が適切に処理されている

発達

開発モードで実行するには:

npm run dev

テストの場合:

npm test
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Sumo Logic の API と統合して、構成可能なクエリと時間範囲によるログ検索を可能にし、エラー処理と Docker 経由の簡単なデプロイメントをサポートします。

  1. 特徴
    1. 環境変数
      1. 設定
        1. Dockerのセットアップ
          1. 使用法
            1. エラー処理
              1. 発達

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  The Seq MCP Server enables interaction with Seq's API endpoints for logging and monitoring, providing tools for managing signals, events, and alerts with extensive filtering and configuration options.
                  Last updated 2 months ago
                  3
                  13
                  3
                  JavaScript
                  MIT License
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that connects to Backlog API, providing functionality to search, retrieve, and update issues through natural language commands.
                  Last updated 2 months ago
                  42
                  1
                  JavaScript
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that allows AI assistants to access AWS CloudWatch logs by listing log groups and reading log entries.
                  Last updated a month ago
                  4
                  Python

                View all related MCP servers

                ID: 6vnt6vueaf