-
Notifications
You must be signed in to change notification settings - Fork 72
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 Facility for deploying ElasticSearch Transform #23
Comments
@ruflin could use your input here.
This item impacts the package spec. We could enhance the spec to allow transforms to be optionally defined as
These items impact the actual implementation, which would happen in Kibana. Once we agree on the spec changes (discussion in the previous paragraph), I'll make a PR to update the spec in this repo here and then we can file an issue in Kibana for the implementation items. |
It seems the transform depends on one dataset to create a second one. The index So what But what about the namespace part? Will the transform be applied to all namespaces? Can the namespace somehow be passed in as a param on @nnamdifrankie Could you open a second issue in Kibana around the part installing / removing / updating the transforms as this not directly applies to the spec. |
@ruflin What repository for the kibana ticket. And to answer your question about the metadata_current we have already defined it and it is managed by ingest. https://github.com/elastic/package-storage/pull/325/files#diff-fd155145fe68664d8a5cbd8b7727ac5f |
@nnamdifrankie https://github.com/elastic/kibana Could you also share your thoughts on how you would see it working with the namespaces? |
This is a good I will answer and ask some question on how the indices are created. Answer: We currently write to the default namespace and read from all namespaces Questions:
|
Related Kibana issue can be found here: elastic/kibana#75153 |
Indices are not created by default, there is only the template. The index (data stream) is created when the first document is ingested. |
Side note: it looks like the scripted_metric agg is trying to capture the "most recent" document for each host? If that's true, I think it can be done with a TopMetrics agg instead We're trying to discourage the use of scripted-metric... it can be very dangerous, and the top-metrics agg should be faster too. :) |
I know we spoke offline on slack at the time of your comment. But I wanted to comment here for posterity. We are not trying to gather specific metrics but we are trying to retrieve the latest document related to the pivot property, and replace the last document in the destination. Hence we are using this approach, but if there are other better approaches please comment. Thanks. |
If you need the latest document, perhaps TopHits agg instead? |
It's a bit old issue. Feel free to reopen it if it's still valid. |
This actually got implemented. We are now in the progress in figuring out how we can improve it. |
Reopening this issue as we noticed that transforms and index templates haven't been formalized with package-spec, which mean they're "illegal". @pzl @nnamdifrankie Could you please add missing definitions to spec? |
For context, back in elastic/kibana#75153 support was added to Kibana to install transforms and the required associated index template for a transform's destination index. Endpoint is currently the only package to be using these today, however no associated package-spec changes were ever merged for transforms or their associated index templates |
ping @kevinlog |
Hey @mtojek, another point that is related to this point is when we perform
Another point I would like to raise after conversation with @joshdover is: Adding assets to create the cloud security posture solution led us to discover that in some cases we would like to create a dependency between assets. When the assets were initialized, we got an error saying the source index of cc: @kfirpeled |
Hey all, I'd like to raise several points to consider here, regarding Since I wonder if we should introduce a hint, in the naming convention, that the current index is not a datastream or that this is a latest Transform kind of index. Or maybe that is me, misunderstanding how it works. The second question is, when installing package's Transforms, how to make them aware to kibana namespaces. How to create a transform that the source of it is a datastream? which is kibana namespace aware. And how to create a datastream that the destination of it is kibana namespace aware? |
The issue has some relevant discussion about transforms and space awareness. We're currently discussing options with the ML team on how to solve this. There's nothing concrete yet, but you can follow along. @joshdover latest comment here has some ideas. |
closed by #307 |
Background
And the ability to deploy a defined ElasticSearch transform to be be deployed when a package is applied or upgraded.
Acceptance Criteria
Sample Transform Creation Statements Captured From Kibana Devtools
The text was updated successfully, but these errors were encountered: