graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Watchlist search filters with query parameter definitions cannot be included in content packs

Open miwent opened this issue 4 years ago • 4 comments

Expected Behavior

When including event definitions with search filters using lookup-based parameters ($variable$) the content pack system should include the lookup information about the lookup. The reference(s) to the lookup should not use the lookup ID values but the name of the lookup tables to avoid forcing the inclusion of the lookup configuration in the same content pack as the event definition.

Current Behavior

Lookup table information is not included in the content pack. Installing a content pack with defined parameters results in the following: image

Possible Solution

Steps to Reproduce (for bugs)

  1. Create a test event definition that uses lookup-based query parameters
  2. Export the newly created content pack
  3. Import the content pack on a different system or remove the event definition and install the content pack
  4. Edit the test event definition and review the filter parameters - the query parameter definition does not exist

Context

Cannot include event definitions with query parameters in content packs.

Your Environment

  • Graylog Version: 4.1.2
  • Java Version: 1.8.0_292
  • Elasticsearch Version: 6.8.18
  • MongoDB Version: 4.0.26
  • Operating System:
  • Browser version:

miwent avatar Oct 03 '21 13:10 miwent

@miwent Is this a blocker for 4.2?

bernd avatar Oct 04 '21 12:10 bernd

@miwent Is this a blocker for 4.2?

No, but it has to be in 4.2.1

miwent avatar Oct 04 '21 14:10 miwent

I missed that there is already an open issue for this: #7003

miwent avatar Nov 16 '21 19:11 miwent

@Graylog2/search Can you please talk with @miwent about this issue and if there is a way to solve it? Thank you!

bernd avatar Feb 14 '22 13:02 bernd

might be solved with https://github.com/Graylog2/graylog2-server/pull/21563, needs re-testing

janheise avatar Apr 02 '25 08:04 janheise