dsnslab / NetworkSecurity

6 stars 1 forks source link

import data problem #47

Closed yen-junyu closed 3 years ago

yen-junyu commented 3 years ago

I try to import data use "official ElasticSearch service" , and I encountered the following problem.

截圖 2021-05-23 下午2 26 21

what setting I miss? or I need to change json file by myself to fit the import format?

afcidk commented 3 years ago

You have to modify the json file. Simply remove the _index, _type, _id, _score key and _source key.

That is to change

{
   "_index":"logstash-netsec.proj2-2021.04.08",
   "_type":"_doc",
   "_id":"KakgsHgBrjaDa8NYk4HG",
   "_score":0,
   "_source":{ ...Only leave the value here... }
}

to

{ ... The value of _source key ... }
yen-junyu commented 3 years ago

Thanks for reply.