Skip to main content
Glama

OpenSearch MCP Server

by cyberbalsa

searchLogs

Query and retrieve logs from any OpenSearch index using specific search criteria, such as time range, index pattern, and fields, to analyze and monitor Wazuh security logs effectively.

Instructions

Search for logs in any OpenSearch index

Input Schema

NameRequiredDescriptionDefault
fieldsNoComma-separated list of fields to return
indexYesIndex pattern to search
maxResultsNoMaximum number of results to return
queryYesThe search query text
timeFieldNoName of the timestamp field@timestamp
timeRangeNoTime range (e.g., 1h, 24h, 7d)24h

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "fields": { "description": "Comma-separated list of fields to return", "type": "string" }, "index": { "description": "Index pattern to search", "type": "string" }, "maxResults": { "default": 20, "description": "Maximum number of results to return", "type": "number" }, "query": { "description": "The search query text", "type": "string" }, "timeField": { "default": "@timestamp", "description": "Name of the timestamp field", "type": "string" }, "timeRange": { "default": "24h", "description": "Time range (e.g., 1h, 24h, 7d)", "type": "string" } }, "required": [ "query", "index" ], "type": "object" }

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/cyberbalsa/mcp-opensearch-js'

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