Hi,
is there way run kibana rest from java apache http client (or other java rest client)?
what url to use ?
for example run in apache http :
PUT %3Cbase_elements_rwr-%7Bnow%2Fd%7D-000001%3E
{
"aliases": {
"baseelements_rwr": {
"is_write_index": false
}
}
}
or
PUT /_index_template/rwr_template
{
"index_patterns": [
"*base_elements_rwr*"
],
"priority": 0,
"template": {
"settings": {
"index.lifecycle.name": "rwr_size_policy",
"index.lifecycle.rollover_alias": "baseelements_rwr",
"index.lifecycle.parse_origination_date":true,
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"properties": {
"sessionId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}