Skip to content

Commit 2f2a380

Browse files
committed
[API] Update supported params for ingest API endpoints
1 parent 47d8a6f commit 2f2a380

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module Elasticsearch
2+
module API
3+
module Ingest
4+
module Actions
5+
6+
# Extracts structured fields out of a single text field within a document. You choose which field to extract
7+
# matched fields from, as well as the grok pattern you expect will match.
8+
#
9+
#
10+
# @see https://www.elastic.co/guide/en/elasticsearch/plugins/current/ingest.html
11+
#
12+
def processor_grok(arguments={})
13+
method = Elasticsearch::API::HTTP_GET
14+
path = "_ingest/processor/grok"
15+
params = {}
16+
body = nil
17+
18+
perform_request(method, path, params, body).body
19+
end
20+
21+
# Register this action with its valid params when the module is loaded.
22+
#
23+
# @since 6.2.0
24+
ParamsRegistry.register(:processor_grok, [
25+
].freeze)
26+
end
27+
end
28+
end
29+
end

0 commit comments

Comments
 (0)