ES常用查询命令
发表于:2025-02-02 作者:千家信息网编辑
千家信息网最后更新 2025年02月02日,查看索引`curl '10.95.32.34:9200/_cat/indices?v'`创建索引curl -XPUT '10.95.32.34:9200/customer-test?pretty'插
千家信息网最后更新 2025年02月02日ES常用查询命令
- 查看索引
`curl '10.95.32.34:9200/_cat/indices?v'`
创建索引
curl -XPUT '10.95.32.34:9200/customer-test?pretty'
插入数据:
curl -XPUT '10.95.32.34:9200/customer-test/employee/2?pretty' -d '{"name": "John smart"}'curl -XPUT '10.95.32.34:9200/customer-test/employee/1' -d '{"first_name":"John","last_name":"Smith","age":25,"about":"Ilovetogorockclimbing","interests":["sports","music"]}'
查看数据:
curl -XPOST '10.95.32.34:9200/customer-test/_search?pretty'
查看健康:
[root@server02 ~]# curl -sXGET 'http://localhost:9200/_cluster/health?pretty'{"cluster_name" : "es","status" : "green","timed_out" : false,"number_of_nodes" : 9,"number_of_data_nodes" : 9,"active_primary_shards" : 129,"active_shards" : 258,"relocating_shards" : 0,"initializing_shards" : 0,"unassigned_shards" : 0,"delayed_unassigned_shards" : 0,"number_of_pending_tasks" : 0,"number_of_in_flight_fetch" : 0,"task_max_waiting_in_queue_millis" : 0,"active_shards_percent_as_number" : 100.0}
找到未分片的索引
curl -s "http://localhost:9200/_cat/shards" | grep UNASSIGNED
删除索引:
curl -XDELETE 'http://localhost:9200/noah_flow_file_20190625'
- 查找未分配索引
curl -s 'http://localhost:9200/_cat/shards' | grep UNASSIGNED | awk '{print $1}' | sort | uniq
索引
数据
健康
分配
命令
常用
常用查询
查询
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网易游戏软件开发面试链式
网络安全 pdrr
查找不同数据库
深圳服务器回收联系电话
k3 数据库结构
平谷区智能化网络技术服务系统
线下迁移数据库
国家级网络安全防火墙价格
数据库出问题怎么修复数据库
嘉兴学院服务器管理系统
实施思科ios网络安全pt
游戏服务器修改器
青浦区智能网络技术开发
长春有名的网络技术哪家好
广西网络安全管理员
网络技术都考什么
浅然网络技术论坛
数据库应用中文摘要
数据库安全背景
数据库888端口安全吗
路由器提示dns服务器未响应
数据库用ssd
游戏服务器修改器
咸阳市软件开发培训学校
关于抓好网络安全的通知
全球最大的检索数据库
vb数据库比较大小
数据库视图修改字段
sql数据库监控
网吧的独立服务器每年都需要缴费