Skip to main content
Glama

MCP Sumo Logic Server

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

                • -
                  security
                  F
                  license
                  -
                  quality
                  Enables LLMs to perform semantic search and document management using ChromaDB, supporting natural language queries with intuitive similarity metrics for retrieval augmented generation applications.
                  Last updated -
                  Python
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables integration with DuckDuckGo search capabilities for LLMs, supporting comprehensive web search, regional filtering, result types, and safe browsing with caching and customizable search parameters.
                  Last updated -
                  16
                  3
                  TypeScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  Allows developers and AI Agents to query Google Cloud Logging using natural language, translating queries into Google Cloud Logging Query Language (LQL) with Vertex AI Gemini 2.5.
                  Last updated -
                  Python

                View all related MCP servers

                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/samwang0723/mcp-sumologic'

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