hayio
3/22/2019 - 12:13 PM

kibana change index-pattern date

GET .kibana-6/_search
{
  "query": {
    "term": {"type": "index-pattern"}
  },
  "size": 1000
}

GET .kibana-6/_search
{
  "query": {
    "term": {"index-pattern.timeFieldName": "date"}
  },
  "size": 1000
}

GET .kibana-6/_mapping

GET .kibana-6/doc/index-pattern:AWLYc6xmlYF65g4f96UK

POST .kibana-6/doc/index-pattern:AWLYc6xmlYF65g4f96UK/_update
{
    "doc" : {
        "index-pattern" : { "timeFieldName" : "date" }
    },
    "detect_noop": false
}