Hi,
Please let me know where I am going wrong.
I did try with @timestamp, accesstime and modifytime I get the following error for all the 3:
Deprecation: Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header.
{
"error": {
"root_cause": [
{
"type": "index_not_found_exception",
"reason": "no such index",
"resource.type": "index_or_alias",
"resource.id": "fsimage",
"index_uuid": "na",
"index": "fsimage"
}
],
"type": "index_not_found_exception",
"reason": "no such index",
"resource.type": "index_or_alias",
"resource.id": "fsimage",
"index_uuid": "na",
"index": "fsimage"
},
"status": 404
}
---------------------------------------------------------------------------------------------------------------
When i execute this:
GET _search
{
"query": {
"match_all": {}
}
}
I get the following output for fsimage:
{
"_index": ".kibana",
"_type": "search",
"_id": "4e265220-0f3f-11e7-be1a-897e9d3c543f",
"_score": 1,
"_source": {
"title": "fsimage",
"description": "",
"hits": 0,
"columns": [
"_source"
],
"sort": [
"@timestamp",
"desc"
],
"version": 1,
"kibanaSavedObjectMeta": {
"searchSourceJSON": """{"index":"logstash-","query":{"query_string":{"analyze_wildcard":true,"query":""}},"filter":[{"meta":{"negate":false,"index":"logstash-","key":"type","value":"fsimage","disabled":false,"alias":null},"query":{"match":{"type":{"query":"fsimage","type":"phrase"}}},"$state":{"store":"appState"}}],"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"":{}},"require_field_match":false,"fragment_size":2147483647}}"""
}
}
},
{
"_index": ".kibana",
"_type": "search",
"_id": "c7b94ae0-1320-11e7-8397-e7424a7c9acf",
"_score": 1,
"_source": {
"title": "access time",
"description": "",
"hits": 0,
"columns": [
"_source"
],
"sort": [
"@timestamp",
"desc"
],
"version": 1,
"kibanaSavedObjectMeta": {
"searchSourceJSON": """{"index":"logstash-2017*","query":{"query_string":{"analyze_wildcard":true,"query":"accessTime:[2017-03-01 TO 2017-03-25]"}},"filter":[],"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"":{}},"require_field_match":false,"fragment_size":2147483647}}"""
}
}
},
{
"_index": ".kibana",
"_type": "search",
"_id": "abbf3400-1a2b-11e7-a800-a39adf5cfee2",
"_score": 1,
"_source": {
"title": "hive databases",
"description": "",
"hits": 0,
"columns": [
"_source"
],
"sort": [
"@timestamp",
"desc"
],
"version": 1,
"kibanaSavedObjectMeta": {
"searchSourceJSON": """{"index":"test","query":{"query_string":{"query":"HDFSDEPTH1: apps AND HDFSDEPTH2: hive","analyze_wildcard":true}},"filter":[],"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"":{}},"require_field_match":false,"fragment_size":2147483647}}"""
}
}
},
{
"_index": ".kibana",
"_type": "search",
"_id": "2301a3e0-1969-11e7-8c16-7f4f956c0889",
"_score": 1,
"_source": {
"title": "fsimage",
"description": "",
"hits": 0,
"columns": [
"_source"
],
"sort": [
"@timestamp",
"desc"
],
"version": 1,
"kibanaSavedObjectMeta": {
"searchSourceJSON": """{"index":"logstash-","query":{"query_string":{"analyze_wildcard":true,"query":"type: fsimage"}},"filter":[],"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"":{}},"require_field_match":false,"fragment_size":2147483647}}"""
}
}
},
{
"_index": ".kibana",
"_type": "search",
"_id": "2a8c4640-6b19-11e7-877e-ed8345e7592b",
"_score": 1,
"_source": {
"title": "test",
"description": "",
"hits": 0,
"columns": [
"HDFSPath",
"FileSize"
],
"sort": [
"@timestamp",
"desc"
],
"version": 1,
"kibanaSavedObjectMeta": {
"searchSourceJSON": """{"index":"fsimage*","query":{"query_string":{"analyze_wildcard":true,"query":""}},"filter":[],"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"":{}},"require_field_match":false,"fragment_size":2147483647}}"""
}
}
}
]
}
}