Skip to content
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

[ML] Transforms UI only allows "histogram" on long fields - should also allow "terms" #147419

Closed
toby-sutor opened this issue Dec 13, 2022 · 1 comment · Fixed by #151879
Closed
Assignees
Labels
enhancement New value added to drive a business result Feature:Transforms ML transforms :ml v8.8.0

Comments

@toby-sutor
Copy link
Contributor

toby-sutor commented Dec 13, 2022

Part of #123459

Kibana version: 7.17 - 8.5.3

Describe the bug:
While creating Transforms via the Kibana UI, we cannot select terms aggregations for long fields. The only option available for long fields is histogram, which results in different output than terms.
Using the Elasticsearch API, we can create transforms on long fields in either terms or histogram. The expected behavior is that Kibana also offers both aggregation methods.

Steps to reproduce:

  1. Deploy the Kibana weblogs sample data
  2. Go to Stack Management -> Transforms and create a new transform
  3. For Groupy by select terms(clientip) and another one histogram(machine.ram)
  4. Notice how no terms(machine.ram) are available. Also, notice how the field cannot be changed via the Edit button

Expected behavior:
Kibana should offer other aggregations, too, e.g., terms.

Screenshots (if relevant):

Screenshot 2022-12-13 at 08 48 02

Screenshot 2022-12-13 at 08 48 38

Workaround:
The currently confirmed workaround is to use the Kibana UI with the histogram aggregation until the end of the transforms configuration page. There, it offers to Copy to clipboard, which copies the current API call. Paste this to the Kibana dev console and replace the histogramaggregation with aterms. aggregation. Note that the aggregation name must not contain a period (.). This allows for the setup of transforms with termsonlong` fields.

Screenshot 2022-12-12 at 12 52 00

Screenshot 2022-12-13 at 08 53 14

Screenshot 2022-12-13 at 08 53 39

Screenshot 2022-12-13 at 09 00 00

@toby-sutor toby-sutor added bug Fixes for quality problems that affect the customer experience Feature:Transforms ML transforms labels Dec 13, 2022
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 13, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 16, 2022
@peteharverson peteharverson changed the title Transforms UI only allows "histogram" on long fields - should also allow "terms" [ML] Transforms UI only allows "histogram" on long fields - should also allow "terms" Dec 16, 2022
@peteharverson peteharverson added v8.8.0 enhancement New value added to drive a business result and removed v8.7.0 bug Fixes for quality problems that affect the customer experience labels Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Transforms ML transforms :ml v8.8.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants