# Help to customizing Index and Type

**URL:** https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251
**Category:** Logstash
**Created:** [August 17, 2020, 2:34pm UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251 "2020-08-17T14:34:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Moksha20](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Moksha20](https://discuss.elastic.co/u/Moksha20)
#### Post date: [August 17, 2020, 2:34pm UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251/1 "2020-08-17T14:34:30Z")

</div>

Hi,

I have migrated ELK 6.x to ELK 7.8.In previous version I used to ship log using logship.py where as now I have to use filebeats.  
I am facing two issues here  
1)'index' and 'type' I am getting as meta format that is as '\_index' and '\_type'.  
How to get it without underscore??

2)In previous configuration I can easily define index and types..  
ex: if I create a index name shopebill under the same index I can create 3 different types that is---  
shopebill-stat  
shopebill-item  
shopebill-rate

But in the ne method when if I am defining the index I am not able to create different type under same index.

Can anybody help me to create that??

Thanks in advance...

#stack-elasticsearch, #stack-kibana, #stack-logstash, #stack-beats

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 17, 2020, 11:19pm UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251/2 "2020-08-17T23:19:59Z")

</div>

Are the original types you have the same document, with different values, or totally different document structures?

---

<div class="post-metadata">

### Author: ![Moksha20](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Moksha20](https://discuss.elastic.co/u/Moksha20)
#### Post date: [August 18, 2020, 8:21am UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251/3 "2020-08-18T08:21:05Z")

</div>

It's a same document structure.  
Somehow I manged to generate the type. but the index is still coming as \_index..  
is there any way to remove the ' \_ '

Also after shipping the log I can see there are lots of unwanted field in the Kibana Logs.  
Should I create a restrict it in the filter section of the lostash.conf?  
If that is the case what should be the syntax(my goal is to only ship the fields I mentioned in my grok patterns for my message)??

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 18, 2020, 8:40pm UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251/4 "2020-08-18T20:40:48Z")

</div>

If they are the same structure, then just create a new field called `shopebill-type` and then assign the appropriate value to that in the doc.

---

<div class="post-metadata">

### Author: ![Moksha20](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Moksha20](https://discuss.elastic.co/u/Moksha20)
#### Post date: [August 19, 2020, 2:22pm UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251/5 "2020-08-19T14:22:27Z")

</div>

Hi Mate..  
Can you help me with another issue as I am very new to this filebeat shipping thing.  
Once I ship the log to kibana I am getting so many meta data field both for kibana and filebeat...now I can filter it in kibana visualisation but is there any way to filter out/exclude those field during log ingestion .

Thanks in advance..

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 19, 2020, 9:40pm UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251/6 "2020-08-19T21:40:17Z")

</div>

It'd be better to create a new topic on that one, just to keep things clear 🙂

---

<div class="post-metadata">

### Author: ![Moksha20](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Moksha20](https://discuss.elastic.co/u/Moksha20)
#### Post date: [August 19, 2020, 10:58pm UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251/7 "2020-08-19T22:58:28Z")

</div>

sure.... post created

> [@Help: How to filter unwanted metadata and fields from filebeats](https://discuss.elastic.co/t/help-how-to-filter-unwanted-metadata-and-fields-from-filebeats/245685):
>
> I am very new to this filebeat shipping thing. Once I ship the log to kibana I am getting so many meta data field both for kibana and filebeat...now I can filter it in kibana visualization but is there any way to filter out/exclude those field during log ingestion . Thanks in advance..

---

<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: [September 16, 2020, 10:58pm UTC](https://discuss.elastic.co/t/help-to-customizing-index-and-type/245251/8 "2020-09-16T22:58:37Z")

</div>

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