马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
ELK 这一套的版本更迭很快,
而且es常有不兼容的东西出现,
经常是搜一篇文章,看似能用,拿到我这边就不能用了。
非常烦恼。
我这边的ELK版本现在是 6.8.18,这次的使用记录一下。
(涉密内容略有编削,一看便知)
es版本信息:
- {
- "name" : "es-client1",
- "cluster_name" : "xt-logs-view",
- "cluster_uuid" : "xxxxxxxxxxxx-UNg",
- "version" : {
- "number" : "6.8.18",
- "build_flavor" : "default",
- "build_type" : "docker",
- "build_hash" : "aca2329",
- "build_date" : "2021-07-28T16:06:05.232873Z",
- "build_snapshot" : false,
- "lucene_version" : "7.7.3",
- "minimum_wire_compatibility_version" : "5.6.0",
- "minimum_index_compatibility_version" : "5.0.0"
- },
- "tagline" : "You Know, for Search"
- }
复制代码 创建一个index,指定字段为date范例
kibana中的下令:
- PUT my_index
- {
- "mappings": {
- "_doc": {
- "properties": {
- "createTime": {
- "type": "date",
- "format": "yyyy-MM-dd HH:mm:ss"
- },
- "updateTime": {
- "type":
复制代码 |