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

**URL:** <https://discuss.elastic.co/t/index-pattern-does-not-include-all-fields-when-i-am-using-bulk/209653>\
**Category:** Kibana\
**Created:** [November 27, 2019, 10:10am UTC](https://discuss.elastic.co/t/index-pattern-does-not-include-all-fields-when-i-am-using-bulk/209653 "2019-11-27T10:10:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmal](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pmal](https://discuss.elastic.co/u/pmal)\
**Post date:** [November 27, 2019, 10:10am UTC](https://discuss.elastic.co/t/index-pattern-does-not-include-all-fields-when-i-am-using-bulk/209653/1 "2019-11-27T10:10:24Z")

</div>

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](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"}  
}  
}  
}  
}  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![pmal](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pmal](https://discuss.elastic.co/u/pmal)\
**Post date:** [November 27, 2019, 12:45pm UTC](https://discuss.elastic.co/t/index-pattern-does-not-include-all-fields-when-i-am-using-bulk/209653/2 "2019-11-27T12:45:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 25, 2019, 12:55pm UTC](https://discuss.elastic.co/t/index-pattern-does-not-include-all-fields-when-i-am-using-bulk/209653/3 "2019-12-25T12:55:27Z")

</div>

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