# How to add an alias in filebeat template aliases field without distributing the other alias in aliases

**URL:** https://discuss.elastic.co/t/how-to-add-an-alias-in-filebeat-template-aliases-field-without-distributing-the-other-alias-in-aliases/233761
**Category:** Beats
**Tags:** filebeat
**Created:** [May 21, 2020, 3:01pm UTC](https://discuss.elastic.co/t/how-to-add-an-alias-in-filebeat-template-aliases-field-without-distributing-the-other-alias-in-aliases/233761 "2020-05-21T15:01:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ramakrushna.sahu](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@ramakrushna.sahu](https://discuss.elastic.co/u/ramakrushna.sahu)
#### Post date: [May 21, 2020, 3:01pm UTC](https://discuss.elastic.co/t/how-to-add-an-alias-in-filebeat-template-aliases-field-without-distributing-the-other-alias-in-aliases/233761/1 "2020-05-21T15:01:37Z")

</div>

# How to add an alias in filebeat template aliases field without distributing the other alias in aliases

I have existing alias in template aliases. I want to add one/few allies in the existing aliases-filed of the template. How can I achieve this?

For Example

GET \_tempalte/xyz  
{  
...  
...  
"aliases" : {  
"a" : {  
"filter" : {  
"term" : {  
"event.category" : "me"  
}  
}  
}  
}

After adding another alias named "b" it should look like as below

GET \_tempalte/xyz  
{  
...  
...  
"aliases" : {  
"a" : {  
"filter" : {  
"term" : {  
"event.category" : "me"  
}  
}  
},  
"b" : {  
"filter" : {  
"term" : {  
"event.category" : "you"  
}  
}  
}  
}

How can I achieve this?

---

<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: [June 18, 2020, 3:07pm UTC](https://discuss.elastic.co/t/how-to-add-an-alias-in-filebeat-template-aliases-field-without-distributing-the-other-alias-in-aliases/233761/2 "2020-06-18T15:07:15Z")

</div>

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