# Dynamic Index name and mapping

**URL:** <https://discuss.elastic.co/t/dynamic-index-name-and-mapping/17241>\
**Category:** Elasticsearch\
**Created:** [April 28, 2014, 4:04pm UTC](https://discuss.elastic.co/t/dynamic-index-name-and-mapping/17241 "2014-04-28T16:04:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Andrade](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@Bruno\_Andrade](https://discuss.elastic.co/u/Bruno_Andrade)\
**Post date:** [April 28, 2014, 4:04pm UTC](https://discuss.elastic.co/t/dynamic-index-name-and-mapping/17241/1 "2014-04-28T16:04:55Z")

</div>

Good evening,

I have an IDS send is alerts, via fluentd, to a new index generated  
everyday, like this snort-yymmdd.  
I'm trying to define a mapping for that index, but I don't know how to  
define a mapping for an index generated dynamically, just for those with  
static names.

Is possible to do this?

Kind regards,  
Bruno Andrade.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4d21f3ca-0ce5-445d-a792-1e2a3f9793b0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4d21f3ca-0ce5-445d-a792-1e2a3f9793b0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [April 29, 2014, 5:59am UTC](https://discuss.elastic.co/t/dynamic-index-name-and-mapping/17241/2 "2014-04-29T05:59:19Z")

</div>

You can use wildcards with index templates:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Ivan

On Mon, Apr 28, 2014 at 9:04 AM, Bruno Andrade [bruno90@gmail.com](mailto:bruno90@gmail.com) wrote:

> Good evening,
> 
> I have an IDS send is alerts, via fluentd, to a new index generated  
> everyday, like this snort-yymmdd.  
> I'm trying to define a mapping for that index, but I don't know how to  
> define a mapping for an index generated dynamically, just for those with  
> static names.
> 
> Is possible to do this?
> 
> Kind regards,  
> Bruno Andrade.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/4d21f3ca-0ce5-445d-a792-1e2a3f9793b0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4d21f3ca-0ce5-445d-a792-1e2a3f9793b0%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/4d21f3ca-0ce5-445d-a792-1e2a3f9793b0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4d21f3ca-0ce5-445d-a792-1e2a3f9793b0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQD3yRXHwwGRas\_WuOu0Hc9jOYs\_1KkUwePgbgqhbB-yRA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQD3yRXHwwGRas_WuOu0Hc9jOYs_1KkUwePgbgqhbB-yRA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bruno\_Andrade](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@Bruno\_Andrade](https://discuss.elastic.co/u/Bruno_Andrade)\
**Post date:** [April 29, 2014, 9:11am UTC](https://discuss.elastic.co/t/dynamic-index-name-and-mapping/17241/3 "2014-04-29T09:11:03Z")

</div>

I gave it a look... that's exactly what I need.

Thanks.

Segunda-feira, 28 de Abril de 2014 17:04:55 UTC+1, Bruno Andrade escreveu:

> Good evening,
> 
> I have an IDS send is alerts, via fluentd, to a new index generated  
> everyday, like this snort-yymmdd.  
> I'm trying to define a mapping for that index, but I don't know how to  
> define a mapping for an index generated dynamically, just for those with  
> static names.
> 
> Is possible to do this?
> 
> Kind regards,  
> Bruno Andrade.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/af4f0874-5d53-46ae-8259-dd36430677bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/af4f0874-5d53-46ae-8259-dd36430677bb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:32am UTC](https://discuss.elastic.co/t/dynamic-index-name-and-mapping/17241/4 "2017-07-06T01:32:50Z")

</div>


