Data visualization Kibana

Data visualization Kibana

1,3.1 use of logstash imported data

An error message appears:

[location] is defined as an object in mapping [doc] but this name is already used for a field in other types

Cause of the error is mapping created for the accident, but the default coverage mapping default doc, not the same as with the previously created;

The machine ELK version 6.2.4; logstash for the processed data does not repeat the process need to remove the contents of the data folder inside, after repeated introduction;

Approach, modify csv_to_es.conf, delete the contents of the type;

input {
  file {
    path => "/Users/stono/Downloads/LK5/Chapter3/source/accident*"
    start_position => "beginning"
  }
}

Modify template.json, mapping doc name is below DOC;

{
  "template" : "accident*",
  "mappings" : {
    "doc": {
      "properties": {
        "location": { "type": "geo_point" },
        "involvedCount": { "type": "double" }
      }        
    }
  }
}

logstash does not automatically quit after starting, files can be imported appears, will import their own; 

 

Guess you like

Origin www.cnblogs.com/stono/p/11926987.html