You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/logsdb/10_settings.yml
+62Lines changed: 62 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,68 @@ create logs index:
68
68
- is_true: test
69
69
- match: { test.settings.index.mode: "logsdb" }
70
70
71
+
---
72
+
create logs index without doc values sparse index:
73
+
- do:
74
+
indices.create:
75
+
index: test
76
+
body:
77
+
settings:
78
+
index:
79
+
mapping:
80
+
use_doc_values_skipper: false
81
+
mode: logsdb
82
+
number_of_shards: 2
83
+
mappings:
84
+
properties:
85
+
"@timestamp":
86
+
type: date
87
+
host.name:
88
+
type: keyword
89
+
agent_id:
90
+
type: keyword
91
+
process_id:
92
+
type: integer
93
+
http_method:
94
+
type: keyword
95
+
message:
96
+
type: text
97
+
98
+
- do:
99
+
bulk:
100
+
index: test
101
+
refresh: true
102
+
body:
103
+
- { "index": { } }
104
+
- { "@timestamp": "2024-02-12T10:30:00Z", ignored_field_stats: "foo", "agent_id": "darth-vader", "process_id": 101, "http_method": "GET", "message": "No, I am your father." }
105
+
- { "index": { } }
106
+
- { "@timestamp": "2024-02-12T10:31:00Z", "host.name": "bar", "agent_id": "yoda", "process_id": 102, "http_method": "PUT", "message": "Do. Or do not. There is no try." }
107
+
- { "index": { } }
108
+
- { "@timestamp": "2024-02-12T10:32:00Z", "host.name": "foo", "agent_id": "obi-wan", "process_id": 103, "http_method": "GET", "message": "May the force be with you." }
109
+
- { "index": { } }
110
+
- { "@timestamp": "2024-02-12T10:33:00Z", "host.name": "baz", "agent_id": "darth-vader", "process_id": 102, "http_method": "POST", "message": "I find your lack of faith disturbing." }
111
+
- { "index": { } }
112
+
- { "@timestamp": "2024-02-12T10:34:00Z", "host.name": "baz", "agent_id": "yoda", "process_id": 104, "http_method": "POST", "message": "Wars not make one great." }
113
+
- { "index": { } }
114
+
- { "@timestamp": "2024-02-12T10:35:00Z", "host.name": "foo", "agent_id": "obi-wan", "process_id": 105, "http_method": "GET", "message": "That's no moon. It's a space station." }
0 commit comments