Skip to main content
Glama
samwang0723

MCP Sumo Logic Server

by samwang0723

MCP スモロジック

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

特徴

  • カスタムクエリを使用してSumo Logicログを検索する

  • 検索の時間範囲を設定可能

  • エラー処理と詳細なログ記録

  • 簡単に導入できるDockerサポート

Related MCP server: sumo-mcp

環境変数

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
F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

0Releases (12mo)

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables searching Sumo Logic logs using the search_logs tool, with support for query parameters such as time range and maximum results.
    1
    1
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables natural language interaction with SumoLogic for log management and analytics, with contextual awareness through a configuration file that maps your environment.
    Apache 2.0

View all related MCP servers

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

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