PUT _index_template/index_name
{
"index_patterns": ["index_name*"],
"allow_auto_create": true,
"priority": 100,
"template": {
"settings": {
"number_of_shards": 4,
"number_of_replicas": 1,
"index.lifecycle.name": "testindex-ilm",
"index.lifecycle.rollover_alias": "index_name_main"
}
}
}
PUT amolindex_rpm_url_index_main-000001
{
"aliases": {
"amolindex_rpm_url_index_main": {
"is_write_index": true
}
}
}
DELETE dm-logstash-apache-access-log
GET _cat/shards?v=true&index=test_index*
GET _cat/nodes?v=true&h=heap.max
GET _nodes/stats?human&filter_path=nodes.*.name,nodes.*.indices.mappings.total_estimated_overhead*,nodes.*.jvm.mem.heap_max*
GET /_cat/indices/test-index-name*?v
GET /_cat/indices/*test-logstash-apache-access*?h=index,pri,rep,store.size&bytes=gb
PUT amolindex_typ_tag_vw_index/_settings
{
"index": {
"blocks.read_only": true
}
}
POST test_index-metrics-prog-2024.10.*/_ilm/remove
PUT test_index-metrics-prog-2024.10.*/_settings
{
"index": {
"lifecycle": {
"name": "test_index-metric-policy"
}
}
}
PUT _cluster/settings
{
"transient": {
"cluster.routing.rebalance.enable": "none"
}
}
PUT _cluster/settings
{
"transient": {
"cluster.routing.rebalance.enable": "all"
}
}
curl -XPOST 'http://kibana_url:9200/test_index-test/_doc' \
\ -H 'Content-Type: application/json' \
\ -u user:password \
\ -d '{
"field1": "value1",
"field2": "value2"
}'
curl -X PUT http://ES IP:9200/_cluster/settings -H "Content-Type: application/json" -d'
{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}
curl -X GET http://ES IP:9200/_cluster/settings
curl -X POST http://ES IP:9200/_flush/synced
curl -X PUT http://ES IP:9200/_cluster/settings -H "Content-Type: application/json" -d'
{
"transient": {
"cluster.routing.allocation.enable": "all"
}
}'