Your ElasticSearch Servar and Kibana server should be running during this poc.
Just assume,
Kibana is running at 10.20.30.40:5601
First requirement, you should have same index in your Elasticsearch for which you wanted to create index in Kibana.
If you do not have any index in Elasticsearch then first create it.
{
"_index": "twiteer_one",
"_type": "tweet",
"_id": "2",
"_score": 1,
"_source": {
"nick": "Ishan@gmail.com",
"date": "2015-02-10",
"post": "NCFE",
"other_name": "Ishan Suman"
}
},
{
"_index": "twiteer_one",
"_type": "tweet",
"_id": "17",
"_score": 1,
"_source": {
"nick": "@binodsuman",
"date": "2014-08-15",
"post": "BigData, Kibana, ES, ML",
"other_name": "Binod Suman"
}
}
I hope your Elasticsearch must be running while using below command.
Now suppose you want to create index with name twiteer_one in your kibana, then use this below command in lunux flavor machine. (This command gives some error while executing in Windows Machine).
curl -H "Content-Type: application/json" -XPOST -i -H "kbn-version:4.4.2" http://10.20.30.40:5601/elasticsearch/.kibana/index-pattern/twiteer_one?op_type=create -d '{"title": "twiteer_two", "timeFieldName": "date"}'
After successfully execute this command, come in Kibana and check.
Kibana -> Settings -> Indices, your twiteer_two index should be here.