zoukankan      html  css  js  c++  java
  • 1数据展示:elastic

    本文简单记录延友教我的几个常用语句

    一、es管理界面:

    1、路径: elastic—Management—Dev Tools

    2、常用API

    1、查询某个数据库:
    GET /bi_material/_search
    {
      "query": {
        "match_all": {}
      }
    }
    
    
    GET /bi_material_report/_search
    {
        "query": {
        "match_all": {}
      }
    }
    
    
    2、查询aliases
    GET /_cat/aliases
    
    3、查询数据库:
    GET /bi_material_report/_mapping
    
    
    4、生成新数据库:keyword表示可搜索
    PUT bi_material_report
    {
      "settings": {
        "index": {
          "number_of_shards": 3,
          "number_of_replicas": 2
        }
      },
      "mappings": {
        "properties": {
          "date": {
            "type": "keyword",
            "fields": {
              "ts": {
                "type": "date"
              }
            }
          },
          "app_name": {
            "type": "keyword"
          },
          "material_id": {
            "type": "keyword"
          },
          "material_name": {
            "type": "keyword"
          },
          "material_source": {
            "type": "keyword"
          },
          "material_url": {
            "type": "keyword"
          },
          "platfrom": {
            "type": "keyword"
          },
          "second_agent": {
            "type": "keyword"
          },
          "self_type": {
            "type": "keyword"
          },
          "cost": {
            "type": "double"
          },
          "true_cost": {
            "type": "double"
          }
        }
      }
    }
    

      

    二、 写入数据:

    三、生成表格:

    1、路径: Analytics—Discover

    2、常用操作:

    1、选择数据源、es表
    2、选择列名,生成表格
    3、点击save,将当前表格保存

    四、生成链接:

    1、路径: Analytics—Dashboard

    2、常用操作:

    1、三生成的表格,,可以直接生成数据看板,生成分享链接.
    
    2、生成看板:点击Dashboard, Create dashboard, Add from library,可以看到三保存的表格,选择表格后,在表格基础上可以调整列的位置,可以添加新的面板,然后点击save
    
    3、点击share,生成短链接
  • 相关阅读:
    多线程 C#解决方案小结
    程序员的灯下黑:Handson,Handson,Handson!
    有一家银行每天早上都在你的帐户里存入86,400
    3D流水线[引用]
    诸葛亮著作
    Vista 用户头像存储路径
    C# 关闭显示器的函数
    程序员的灯下黑:管理还是技术?兴趣优先
    VS1.4挤房+MH的登陆器
    失眠的调养
  • 原文地址:https://www.cnblogs.com/hailin2018/p/15789090.html
Copyright © 2011-2022 走看看