zoukankan      html  css  js  c++  java
  • elk常用命令

    curl -XGET '192.168.1.102:9200/_cat/indices?v&pretty'

    curl -XDELETE 'http://192.168.1.102:9200/log*'

    curl -XGET "http://192.168.1.102:9200/logstash-2018.09.06/_mapping?pretty"

    curl -XPUT "http://192.168.1.102:9200/logstash-2018.09.06"

    curl -XGET 'http://192.168.1.102:9200/_template/logstash'

    curl -XGET "http://192.168.1.102:9200/cars/_search?pretty"

    #修改mapping
    curl -X PUT "192.168.1.102:9200/cars/_mapping/transactions" -H 'Content-Type: application/json' -d'
    {
    "properties": {
    "make": {
    "type": "text",
    "fielddata": true
    }}}'

    curl -X GET "192.168.1.102:9200/cars/transactions/_search?pretty" -H 'Content-Type: application/json' -d'
    {
    "size" : 0,
    "aggs" : {
    "popular_colors" : {
    "terms" : {
    "field" : "color"
    }}}}'

  • 相关阅读:
    装配Bean
    百练
    东软小选拔
    俄罗斯乘法
    POJ
    ACdream
    javascript 链式作用域
    ie6/7 bug
    onreadystatechange 和 status
    瀑布流 <<转>>
  • 原文地址:https://www.cnblogs.com/wangmo/p/9660873.html
Copyright © 2011-2022 走看看