# Raw fields missing

**URL:** <https://discuss.elastic.co/t/raw-fields-missing/25408>\
**Category:** Logstash\
**Created:** [July 13, 2015, 3:52am UTC](https://discuss.elastic.co/t/raw-fields-missing/25408 "2015-07-13T03:52:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noodles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/noodles/32/3651_2.png) [@Noodles](https://discuss.elastic.co/u/Noodles)\
**Post date:** [July 13, 2015, 3:52am UTC](https://discuss.elastic.co/t/raw-fields-missing/25408/1 "2015-07-13T03:52:26Z")

</div>

I'm trying to use a separate index for my apache logs:

```
elasticsearch { host => localhost index => "http-%{+YYYY.MM.dd}" }

```

It doesn't look like the .raw fields are being created in ES, but as far as I can see it is using the same template as my logstash-\* index. How can I get the .raw fields back?

---

<div class="post-metadata">

**Author:** ![Noodles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/noodles/32/3651_2.png) [@Noodles](https://discuss.elastic.co/u/Noodles)\
**Post date:** [July 14, 2015, 5:17am UTC](https://discuss.elastic.co/t/raw-fields-missing/25408/2 "2015-07-14T05:17:23Z")

</div>

So it seems although the elasticsearch output has a template\_name parameter, it doesn't seem to work as expected. I changed my index name to logstash-http-%{+YYYY.MM.dd} and now the correct elasticsearch template is being used and the .raw fields are there.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 14, 2015, 5:28am UTC](https://discuss.elastic.co/t/raw-fields-missing/25408/3 "2015-07-14T05:28:00Z")

</div>

Yeah, the standard template only applies to logstash-\* indexes. The documentation isn't very clear on this. I think it's a good idea to self-manage the ES template(s) anyway.

---

<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, 5:34am UTC](https://discuss.elastic.co/t/raw-fields-missing/25408/4 "2017-07-06T05:34:51Z")

</div>


