-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathtext_structure.find_field_structure.json
85 lines (85 loc) · 2.97 KB
/
text_structure.find_field_structure.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"text_structure.find_field_structure": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html",
"description": "Finds the structure of a text field in an index."
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_text_structure/find_field_structure",
"methods": ["GET"]
}
]
},
"params": {
"index": {
"type": "string",
"description": "The index containing the analyzed field",
"required": true
},
"field": {
"type": "string",
"description": "The field that should be analyzed",
"required": true
},
"documents_to_sample": {
"type": "int",
"description": "How many documents should be included in the analysis",
"default": 1000
},
"timeout": {
"type": "time",
"description": "Timeout after which the analysis will be aborted",
"default": "25s"
},
"format": {
"type": "enum",
"options": ["ndjson", "xml", "delimited", "semi_structured_text"],
"description": "Optional parameter to specify the high level file format"
},
"column_names": {
"type": "list",
"description": "Optional parameter containing a comma separated list of the column names for a delimited file"
},
"delimiter": {
"type": "string",
"description": "Optional parameter to specify the delimiter character for a delimited file - must be a single character"
},
"quote": {
"type": "string",
"description": "Optional parameter to specify the quote character for a delimited file - must be a single character"
},
"should_trim_fields": {
"type": "boolean",
"description": "Optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them"
},
"grok_pattern": {
"type": "string",
"description": "Optional parameter to specify the Grok pattern that should be used to extract fields from messages in a semi-structured text file"
},
"ecs_compatibility": {
"type": "string",
"description": "Optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled'"
},
"timestamp_field": {
"type": "string",
"description": "Optional parameter to specify the timestamp field in the file"
},
"timestamp_format": {
"type": "string",
"description": "Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format"
},
"explain": {
"type": "boolean",
"description": "Whether to include a commentary on how the structure was derived",
"default": false
}
}
}
}