File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
docs/reference/troubleshooting Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ PUT my-index-000001
65
65
{
66
66
"mappings": {
67
67
"properties": {
68
+ "@timestamp": {
69
+ "type": "date"
70
+ },
68
71
"my-field": {
69
72
"type": "keyword"
70
73
},
@@ -224,6 +227,21 @@ GET my-index-000001/_search?filter_path=aggregations
224
227
If the field does not return any values, check the data ingestion process. The
225
228
field may have a different name.
226
229
230
+ [discrete]
231
+ [[troubleshooting-searches-latest-data]]
232
+ === Check the latest value
233
+
234
+ For time-series data, confirm there is non-filtered data within the attempted
235
+ time range. For example, if you are trying to query the latest data for the
236
+ `@timestamp` field, run the following to see if the max `@timestamp` falls
237
+ within the attempted range:
238
+
239
+ [source,console]
240
+ ----
241
+ GET my-index-000001/_search?sort=@timestamp:desc&size=1
242
+ ----
243
+ //TEST[continued]
244
+
227
245
[discrete]
228
246
[[troubleshooting-searches-validate-explain-profile]]
229
247
=== Validate, explain, and profile queries
You can’t perform that action at this time.
0 commit comments