1. during create index must add a column with type data like below:
PUT /sample2
{
"settings" : {
"number_of_shards" : 3,
"number_of_replicas" : 2
}
}
PUT /sample2/_mapping
{
"properties":{
"name":{"type":"text"}
"date":{"type":"date"}
}
}
or directly insert
POST /sample1/_doc/1
{
"author": "Beverly Sills2",
"content": "You may be disappointed if you fail, but you are doomed if you don’t try1.",
"year": 1930,
"timestamp":"2022-02-23T16:12:11"
}
-----------------------
open http://localhost:5601/
--> stack manegement--> index pattern ==> http://localhost:5601/app/management/kibana/indexPatterns
Create new index pattern---> set name and select time stamp field--> save
now you can filter basis on time stamp also.
No comments:
Post a Comment