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

Set Field Type feature fails to apply to illuminate indices, no errors shown in UI, no error logged #19766

Open
drewmiranda-gl opened this issue Jun 27, 2024 · 0 comments
Assignees

Comments

@drewmiranda-gl
Copy link
Member

drewmiranda-gl commented Jun 27, 2024

Using the Graylog that allows users to declare explicit field type mappings for OpenSearch. When doing so, you can choose which index sets to apply this mapping to.

image

In this example, Illuminate index sets are shown as eligible for this change. However, up further inspection, after clicking "Change field type"

  • The index set is not rotated even though "Rotate affected indices after change" is checked
  • The index set in OpenSearch has not been updated to reflect this mapping

image

Graylog does save this mapping in the index_sets MongoDB collection:
image

Expected Behavior

  • Graylog disallows changing field types for immutable index sets
  • Graylog UX reflect what index sets can and cannot be changed
  • The backend/API endpoints return errors if changing an immutable index set is attempted
  • Errors logged in graylog's server.log

Current Behavior

  • Graylog gives the appearance that it allows changing field types for immutable index sets
  • Graylog UX does not stop a user from attempting to change field types for immutable index sets
  • Graylog backend/API endpoints do not return any errors for the above
  • Graylog does not log any errors for the above

Steps to Reproduce (for bugs)

The following assumes you have at least 1 illuminate processing pack installed.

  1. Go to the search page
  2. click on the "X" in the left most menu to open the fields list
  3. Choose any field, click on it, select Change field type
  4. Bulk actions / Cancel selection to deselect all index sets
  5. Select an illuminate index set
  6. click "Change field type"

Context

Discovered this while doing research and testing for how this feature works and how it behaves.

Your Environment

  • Graylog Version: 6.0.3
  • Java Version: Bundled
  • OpenSearch Version: 2.15.0
  • MongoDB Version: 6.0.15
  • Operating System: Ubuntu Server 22.04 LTS
  • Browser version: Google Chrome Version 126.0.6478.127 (Official Build) (arm64)

Please let me know if there are any questions.

@luk-kaminski luk-kaminski self-assigned this Jun 28, 2024
@kmerz kmerz added the triaged label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants