摘要:
#!/bin/bash#es_index_delete.sh#日期: 2020.07.07#DATE=`date -d "-226 days" "+%Y.%m.%d"`ES_URL=10.155.200.7:9200#删除七天前过期索引#curl -XDELETE http://${ES_URL}/ 阅读全文
posted @ 2021-03-15 20:32
贝隆
阅读(146)
评论(0)
推荐(0)
|
摘要:
#!/bin/bash#es_index_delete.sh#日期: 2020.07.07#DATE=`date -d "-226 days" "+%Y.%m.%d"`ES_URL=10.155.200.7:9200#删除七天前过期索引#curl -XDELETE http://${ES_URL}/ 阅读全文
posted @ 2021-03-15 20:32
贝隆
阅读(146)
评论(0)
推荐(0)
摘要:
#获取末尾字符 TIM=`tail -c 18 a1.json | egrep -o "[0-9]+"` #查询多字段中包含的关键字,单引号中要获取变量值,需要用单引号包住$变量 curl -X GET 'http://127.0.0.1:9200/dra-nta-dt_packet_http_se 阅读全文
posted @ 2021-03-15 20:29
贝隆
阅读(2617)
评论(0)
推荐(0)
|