-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support elasticsearch data_streams #62
Comments
@thaarbach Should be possible in 1.6. You missed it by 4 days - I would have included it in 1.5..
I'm afraid it won't be that simple, but I'll play around with it and see what can be done. |
@rfoltyns With this knowing, i copied the requests from failover.log and changed them to data stream conform form and put them with curl and voila the log entries appears in the data stream and log app.
Don't know how simple it is to implement them, because before each log entry you need to set the '{"created":{}}. Thx anyway |
I got it to work yesterday with a few quick hacks. It most likely will not be the final implementation. I can push it to a separate branch later if you're ok with building it on your own. |
@rfoltyns Have you already played with elastic apm? I like the log correlation with the correspondending traces and/or transactions. |
I just pushed those quick hacks here. It works with Data Streams only. Once built, run it with:
I haven't tested the XML config yet, but some flags and Log4j2 annotations are already in place. As for APM, similar correlation should be possible already with |
* Add DataStream to ElasticsearchOperationFactory * Add DataStreamItem - batch item * Add DataStreamBatchRequest - batch * Add ElasticsearchDataStreamAPI - builders and serializers * Add ElasticsearchDataStreamAPIPlugin - Log4j2 config
* Add DataStreamBulkableActionMixIn to print Data Stream item metadata * Add JestHttpObjectFactory.dataStreamsEnabled flag. False by default * Add ILMPolicy.createBootstrapIndex to toggle bootstrap index creation * Add DataStreamSetupOp to create Data Stream
Released in 1.6.0 |
With Elasticsearch 7.9.x data streams was introduced.
https://www.elastic.co/guide/en/elasticsearch/reference/master/set-up-a-data-stream.html
https://www.elastic.co/guide/en/elasticsearch/reference/master/use-a-data-stream.html
Unfortunally, appender doesn't supports the bulk api in combination with data_streams. data_streams only supports create and not index.
Eg.
Futher informations
https://www.elastic.co/de/blog/an-introduction-to-the-elastic-data-stream-naming-scheme
https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html
Benefit:
Index-Templates, ILM are provided by elasticsearch out of the box.
The text was updated successfully, but these errors were encountered: