Elastic Stack (ELK Stack) Text Structure API

The text_structure API from Elastic Stack (ELK Stack) — 4 operation(s) for text_structure.

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /_text_structure/find_field_structure Detect the structure of an indexed text field · Find the structure of a text field #
Ask an LLM
“Can Elasticsearch work out the format of log lines already in an index?”
“What Grok pattern fits a text field I've ingested?”
Tell an agent
Find the structure of field {field} in index {index}.
Analyze {field} in {index} sampling {documents} documents.
GET /_text_structure/find_message_structure Detect the structure of text messages via GET · Find the structure of text messages #
Ask an LLM
“Can I infer the format of a list of log messages before ingesting them?”
“Is there a GET form of message structure detection?”
Tell an agent
Find the structure of messages {messages} using GET.
Detect the timestamp format in messages {messages} with a GET request.
POST /_text_structure/find_message_structure Detect the structure of text messages via POST · Find the structure of text messages #
Ask an LLM
“What ingest pipeline would suit a batch of sample messages?”
“Can I POST sample messages and get a suggested mapping back?”
Tell an agent
POST messages {messages} to find their structure.
Suggest mappings for messages {messages} in format {format} via POST.
POST /_text_structure/find_structure Detect the structure of a text file · Find the structure of a text file #
Ask an LLM
“Can Elasticsearch figure out the format of a CSV or log file for me?”
“Does structure detection handle files with a header row?”
Tell an agent
Find the structure of this text file.
Analyze the file as {format} sampling {lines} lines.
GET /_text_structure/test_grok_pattern Test a Grok pattern via GET · Test a Grok pattern #
Ask an LLM
“Does my Grok pattern match these log lines?”
“Is there a GET version of the Grok pattern tester?”
Tell an agent
Test Grok pattern {grok_pattern} against {text} with GET.
Use the GET tester to check {grok_pattern} on lines {text}.
POST /_text_structure/test_grok_pattern Test a Grok pattern via POST · Test a Grok pattern #
Ask an LLM
“Can I POST a Grok pattern and see match offsets for each line?”
“Which substrings did my Grok pattern capture?”
Tell an agent
POST Grok pattern {grok_pattern} to test against {text}.
Show match offsets for {grok_pattern} on {text} via POST.

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/elk-stack:elk-stack-text-structure-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

elk-stack-text-structure-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elasticsearch Request & Response Specification Text…
  license:
    name: Apache 2.0
    url: https://github.com/elastic/elasticsearch-specification/blob/main/LICENSE
  version: ''
tags:


# --- truncated at 32 KB (535 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-text-structure-api-openapi.yml