2017-10-18 3 views
0

Hier ist a link zu meinem Gist-Code, den ich codiert habe und es gibt einen Screenshot des Terminals, die zeigt, welche Art von Fehler es ist.Elasticsearch Mapping Probleme Fehler

Ich habe das Format der JSON-Datei doppelt überprüft, aber immer den gleichen Fehler erhalten.

Bitte helfen. , Mit freundlichen Grüßen

+0

Ist es ein Problem ähnlich wie https://stackoverflow.com/questions/39288997/elasticsearch-root-mapping-definition-has-unupported-parameters-index-not-a? –

Antwort

0

Aktualisieren Sie Ihre vuln_ip.json dazu:

{ 
    "mappings": { 
    "vulnerabilities": { 
     "properties": { 
     "address": { 
      "type": "ip" 
     }, 
     "cpes": { 
      "type": "text" 
     }, 
     "port": { 
      "type": "nested", 
      "properties": { 
      "portid": { 
       "type": "integer" 
      }, 
      "protocol": { 
       "type": "text" 
      }, 
      "service": { 
       "type": "nested", 
       "properties": { 
       "extrainfo": { 
        "type": "text" 
       }, 
       "name": { 
        "type": "text" 
       }, 
       "ostype": { 
        "type": "text" 
       }, 
       "product": { 
        "type": "text" 
       }, 
       "version": { 
        "type": "text" 
       } 
       } 
      }, 
      "state": { 
       "type": "text" 
      } 
      } 
     }, 
     "score": { 
      "type": "text" 
     } 
     } 
    } 
    } 
} 

dieser curl -XPUT 'localhost:9200/vulnerable/' -d @vuln_ip.json Ändern Sie bitte Ihre curl Befehl.