You've already forked www.colben.cn
update
This commit is contained in:
@@ -6,7 +6,7 @@ tags: ["elasticsearch"]
|
||||
categories: ["database"]
|
||||
---
|
||||
|
||||
# 索引
|
||||
## 索引
|
||||
- 查看某节点的全部索引
|
||||
```bash
|
||||
curl http://127.0.0.1:9200/_cat/indices?v
|
||||
@@ -20,7 +20,7 @@ categories: ["database"]
|
||||
curl -X DELETE http://127.0.0.1:9200/index_name
|
||||
```
|
||||
|
||||
# 记录
|
||||
## 记录
|
||||
- 新增记录(指定记录id)
|
||||
```bash
|
||||
curl -X PUT -H "Content-Type: application/json" http://127.0.0.1:9200/index_name/doc_id -d '
|
||||
@@ -54,7 +54,7 @@ categories: ["database"]
|
||||
}'
|
||||
```
|
||||
|
||||
# 查询
|
||||
## 查询
|
||||
- 查询所有记录
|
||||
```bash
|
||||
curl http://127.0.0.1:9200/index_name/_search
|
||||
@@ -127,7 +127,7 @@ categories: ["database"]
|
||||
EOF
|
||||
```
|
||||
|
||||
# Kibana
|
||||
## Kibana
|
||||
- lucene 正则查询
|
||||
```
|
||||
#查询包含10000-99999毫秒的 message 字段
|
||||
@@ -168,7 +168,7 @@ categories: ["database"]
|
||||
}
|
||||
```
|
||||
|
||||
# pipeline
|
||||
## pipeline
|
||||
- 查看已有的 pipeline
|
||||
```bash
|
||||
curl http://127.0.0.1:9200/_ingest/pipeline?pretty=true
|
||||
@@ -179,7 +179,7 @@ categories: ["database"]
|
||||
- [Secure 登陆日志](https://git.colben.cn/colben/myfilebeat/raw/master/pipelines/secure-login.json)
|
||||
- [Nginx access 日志](https://git.colben.cn/colben/myfilebeat/raw/master/pipelines/nginx-access.json)
|
||||
|
||||
# filebeat
|
||||
## filebeat
|
||||
- [常用配置](https://git.colben.cn/colben/myfilebeat/raw/master/filebeat.yml)
|
||||
- [收割 secure 日志](https://git.colben.cn/colben/myfilebeat/raw/master/prospectors.d/secure.yml)
|
||||
- [收割 mysql 慢查询日志和错误日志](https://git.colben.cn/colben/myfilebeat/raw/master/prospectors.d/mysql.yml)
|
||||
|
Reference in New Issue
Block a user