-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Elasticsearch 6 #5905
Comments
@dnsmichi ElasticsearchWriter uses different types which is not allowed in elastic 6.x Example:
|
Hmmm. Icingabeat does the same which we used as reference here. @bobapple any further ideas? |
@bobapple this seems to affect Icingabeat too. From #5795 (comment)
|
Me thinks, that Can someone confirm that? |
The breaking change is documented here: https://www.elastic.co/guide/en/elasticsearch/reference/6.1/removal-of-types.html I think the problematic statement is in
|
Thanks. I have zero knowledge about such things, so I really appreciate any form of hint how to properly patch and migrate that. |
Elastic posted an article yesterday. https://www.elastic.co/blog/kibana-6-removal-of-mapping-types and how they have migrated Kibana.
I still don't know what's the best strategy here for the ElasticsearchWriter. Possible options should follow the format of Icingabeat 6 then, if reasonable. |
If we remove the I'm open for suggestions here, what's your best practice with Elasticsearch 6.x? |
@dnsmichi is there a timeline for the 2.9 release already? As far as I understood 2.8.x will stay elasticsearch 5.x only? |
@friesoft we should first try to find a possible fix for this and then talk about possible release dates. Anything from your side which would help resolve the problem? |
As far as I have read, this implies changes to the way the data is stored in Elasticsearch. As such, this isn't a bug, but a feature request to add 6.x support to the If you urgently need this, sponsoring is welcome. |
Could we have some sort of rudimentary comptibility matrix for the Elasticsearch writer? Checking all versions might be overkill, but we could state somewhere which versions we tested or we know are working. |
How would such a matrix help if you know that 5.x works, and 6.x includes breaking API changes not supported by the ElasticsearchWriter feature? The docs tell you that 5.x is required. |
@dnsmichi Ok, you got a point. The information from the docs is fine. Sorry for the fuzz. |
I have the
The index |
@wols Do you happen to have |
Current observed issue: Splitting the indices by (icinga) type is what makes most sense to me right now. |
My simple setup based on https://www.icinga.com/docs/icinga2/latest/doc/09-object-types/#objecttype-elasticsearchwriter and no, I have not made any index mapping adjustments (elastic/elasticsearch#24961). My daily work contains a small ES cluster, data-filled by Logstash and monitored with Icinga2. |
@wols your problem is discussed and fixed in #5795 (comment) - this targets 2.9 which is not yet released. In terms of other integration discussions please join the community channels, this is getting off-topic here. This issue focusses on getting 6.x support fixed. |
About reading the version: Yes, the document root has the version in a json dictionary. But at what point would we read it? If during startup it might be that ES is not running yet and periodically checking the version sounds a bit overkill to me. |
I didn't find anything else in the docs and changed from elastic 6 to 5 and back. Only thing I had to do were configuration changes in kibana. |
Version handling was just an idea coming from the IDO database land. If we run into different problems with ES 7 we may introduce a configuration option to specify the version. I wouldn't bother with doing handshakes and reading the version from the API on (re)connect, that overly complicates and slows down the feature. |
Aye, let's halt that idea until we need it then. |
Changes verified working for both 5.x and 6.x without the specific need to configure a version. Since there's changes involved with the index, no backport to support/2.8 possible. |
Tasks
_type
with multiple valuesCurrent Behavior
Extracted from #5795
Looking deeper shows error in elastic log:
Possible Solution
The text was updated successfully, but these errors were encountered: