Index pattern does not include all fields when I am using bulk

index pattern missing some fields when I sent JSON data over BULK.
If I use it without bulk, I can see all the fields in index pattern.

here is my bulk request
curl -X POST "http://x.x.x.x:9200/_bulk" -H "Content-Type: application/json" --data-binary "@test.json"

index is

PUT /packets-2019-11-24
{"mappings":
{"doc":{
"properties":{
"index" : {"type":"nested"},
"timestamp":{"type":"date"},
"layers":{
"properties":{
"tcp":{
"properties":{
"tcp_tcp_srcport":{"type":"integer"},
"tcp_tcp_dstport":{"type":"integer"}
}
}
}
}
}
}
}
}

I got what was wrong.
One of my index _template has similar name , as that of my new index name.
I removed that template , now I can see all fields in index pattern.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.