-
Notifications
You must be signed in to change notification settings - Fork 116
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
ELK - No mapping found #125
Comments
@gerbenmeyer can you help? |
As far as I recall, you should not create the index yourself, as it is auto-created. Super long time ago though that I worked on this :) |
I am facing same issue. Had to create the index because initially on startup it complained index eventstore doesn't exist. So if you create index we end up getting this error. It could be because of new version of Elasticsearch and the way it changed behaviour. I was using 7.0.1 in docker. |
Just my two cents, by looking at the driver it seems to be written for older versions of Elasticsearch ( i would say 2.x ) so even if you overcome this issue more issues are to be expected ( usage of types for example ). May I ask what is the motivation behind using elasticsearch as eventstore? |
@nanov you are right. It could break because now ES doesn't support type field in index. For me personally, was trying out options other than Redis to try and test locally with different eventstore. Less relevant to issue but to your question: |
I'm facing the same issue (using 7.0.1 in docker)
I had to manually create an index. But then I got this error:
|
@nanov Currently I use DynamoDB as event store. I'm wondering if there might be issues related to events replay. Since the DynamoDB is key/value database how do you solve the replay of all events? |
@bikerp I'm not sure about the DynamoDB implementation, maybe @developmentalmadness has some insights. As of the Elasticsearch implementation, theres some work that needs to be done in order to make it compatible with elasticsearch 7.X ( or 6.X for that matter ). I'm not sure it is worth looking into it, as, in my opinion, elasticsearch is totally not suitable to serve as an eventstore. |
@nanov Thanks for the reply. Could you be more specific why elasticsearch is not suitable as eventstore? |
Well elasticsearch isn't exactly a database, it has some issues with error handling and it isn't recommended as a main database in any use case. When indexing new documents ( ie writing ), they aren't available for search instantly ( unless you use the wait_for flag, which makes writes slow ) and generally it is designed for other purposes ( well, full-text search ). Having that said, having your eventstore in something more reliable and suitable ( as in eventsourcing this is the only source of truth ) and readmodels in elasticsearch is a totally valid use case. |
@nanov Thanks for the explanation. |
Haven't worked on it in a couple years but I don't think DynamoDB has snapshots implemented. That would be a major drawback unless your model had limited lifetime as ours did when I implemented it. |
Should have checked first before I replied... Looks like snapshots are implemented but our usage didn't need snapshots. Dynamo should be able to handle the usage pattern but I left the company using this 8 months after we put it into production so I don't have much long term insights into any issues with it |
I'm trying to use ELK as storage.
I've created the index:
But now I got the follow error:
How can I configure ELK?
Ca you update the documentation?
thaks
The text was updated successfully, but these errors were encountered: