# Graylog tries to create deflector aliases as indexes on restart

**URL:** <https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876>\
**Category:** Graylog Central (peer support)\
**Created:** [December 3, 2018, 12:57pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876 "2018-12-03T12:57:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdagemark](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jdagemark](https://community.graylog.org/u/jdagemark)\
**Post date:** [December 3, 2018, 12:57pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/1 "2018-12-03T12:57:53Z")

</div>

Hi

We are running  
Graylog: 2.4.6+ceaa7e4  
JVM: Oracle Corporation 1.8.0\_181 on Linux 3.10.0-862.11.6.el7.x86\_64  
Elastic: 5.6.11-1

After each restart of elastics we get messages similar to this one in the graylog server.log

2018-12-03T13:41:11.195+01:00 WARN [Messages] Failed to index message: index=\<del3month\_deflector\> id= error=\<{“type”:“invalid\_index\_name\_exception”,“reason”:“Invalid index name [del3month\_deflector], already exists as alias”,“index\_uuid”:“_na_”,“index”:“del3month\_deflector”}\>

It’s like graylog tries to create the deflector aliases as indexes but fails due to the fact that they already exists as aliases.

Have anyone seen this problem before?

Best regards  
Johannes Dagemark

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [December 3, 2018, 1:48pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/2 "2018-12-03T13:48:20Z")

</div>

I’m only aware of this: [http://docs.graylog.org/en/2.4/pages/faq.html#how-do-i-fix-the-deflector-exists-as-an-index-and-is-not-an-alias-error-message](http://docs.graylog.org/en/2.4/pages/faq.html#how-do-i-fix-the-deflector-exists-as-an-index-and-is-not-an-alias-error-message)

---

<div class="post-metadata">

**Author:** ![jdagemark](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jdagemark](https://community.graylog.org/u/jdagemark)\
**Post date:** [December 3, 2018, 2:15pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/3 "2018-12-03T14:15:15Z")

</div>

Thanks Jan, but it seems my problem is the other way around… ☹

I have the deflector aliases for all my indexes. Just can’t figure out why I get these error messages.

Best  
Johannes

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [December 3, 2018, 3:27pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/4 "2018-12-03T15:27:00Z")

</div>

Did you have cerebro installed to manage your elasticsearch?

With that it would be easy to solve that, remove all aliases and create the correct one.

---

<div class="post-metadata">

**Author:** ![jdagemark](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jdagemark](https://community.graylog.org/u/jdagemark)\
**Post date:** [December 3, 2018, 3:54pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/5 "2018-12-03T15:54:25Z")

</div>

Yes I do have cerebro installed 🙂

Just to be sure before I start deleting, I have 3 indices with index prefix  
default  
del3month  
del6month

In cerebro I can see that I have the following aliases and assignments

default\_deflector assigned to index default\_211  
del3month\_deflector assigned to index del3month\_211  
del6month\_deflector assigned to index del6month\_210

I’m not sure about the deflector alias naming convention but it sure sounds alright to me.

Would this be a good way forward perhaps?  
1, stop graylog  
2, remove the aliases  
3, start graylog and hope that “correct” aliases are created by graylog.

If you have any idea on how to move forward I’m most grateful.

Best  
Johannes

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [December 3, 2018, 4:07pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/6 "2018-12-03T16:07:46Z")

</div>

That might work - but I would not make my life depending on that.

---

<div class="post-metadata">

**Author:** ![jdagemark](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jdagemark](https://community.graylog.org/u/jdagemark)\
**Post date:** [December 7, 2018, 12:44pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/7 "2018-12-07T12:44:55Z")

</div>

Did try

1, stop graylog  
2, remove the aliases  
3, start graylog and hope that “correct” aliases are created by graylog.

The aliases was recreated but the error messages persists. They appear every time I restart the elastic cluster. I don’t think that it’s related to the alias anymore because when the cluster comes back I get a “Bulk indexing finally successful” and the indexing failures stop.

2018-12-07T13:25:26.963+01:00 WARN [Messages] Failed to index message: index=\<del3month\_deflector\> id=\<24b6543c-fa1b-11e8-9597-98f2b326b090\> error=\<{“type”:“invalid\_index\_name\_exceptio  
n”,“reason”:“Invalid index name [del3month\_deflector], already exists as alias”,“index\_uuid”:“_na_”,“index”:“del3month\_deflector”}\>  
2018-12-07T13:25:26.963+01:00 WARN [Messages] Failed to index message: index=\<del6month\_deflector\> id=\<24b6543f-fa1b-11e8-9597-98f2b326b090\> error=\<{“type”:“invalid\_index\_name\_exceptio  
n”,“reason”:“Invalid index name [del6month\_deflector], already exists as alias”,“index\_uuid”:“_na_”,“index”:“del6month\_deflector”}\>  
2018-12-07T13:25:26.963+01:00 ERROR [Messages] Failed to index [2000] messages. Please check the index error log in your web interface for the reason. Error: One or more of the items in  
the Bulk request failed, check BulkResult.getItems() for more information.  
2018-12-07T13:25:28.424+01:00 INFO [Messages] Bulk indexing finally successful (attempt #14).  
2018-12-07T13:25:28.782+01:00 INFO [Messages] Bulk indexing finally successful (attempt #15).

Could it be a case of an unclear log message? Perhaps “Failed to index message” should be more like “could not find index xxxx, perhaps elasticsearch is not operational, check your elasticsearch server log”.

Best regards  
Johannes Dagemark

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [December 7, 2018, 1:49pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/8 "2018-12-07T13:49:29Z")

</div>

Do you mind opening a bug report over [https://github.com/Graylog2/graylog2-server/issues](https://github.com/Graylog2/graylog2-server/issues)

thx

---

<div class="post-metadata">

**Author:** ![jdagemark](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jdagemark](https://community.graylog.org/u/jdagemark)\
**Post date:** [December 10, 2018, 12:41pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/9 "2018-12-10T12:41:11Z")

</div>

Sure, just posted it here [https://github.com/Graylog2/graylog2-server/issues/5393](https://github.com/Graylog2/graylog2-server/issues/5393)

Thanks for the help so far.

Best  
Johannes

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 24, 2018, 12:41pm UTC](https://community.graylog.org/t/graylog-tries-to-create-deflector-aliases-as-indexes-on-restart/7876/10 "2018-12-24T12:41:14Z")

</div>

Closed on December 24, 2018, 12:41pm UTC

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