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

Geo subdivisions in pipeline no longer work

Open smwinn opened this issue 1 year ago • 3 comments

Expected Behavior

I expect this line within a pipeline rule to work without errors like in previous versions.

Current Behavior

The line now gives an error and cannot be saved. I can see the subdivisions information when examining the geo data manually. Screenshot 2024-01-22 131237

Steps to Reproduce (for bugs)

Create a pipeline rule that attempts to access the geo subdivisions data.

Context

I'm trying to use the subdivisions field within geo location data.

Your Environment

  • Graylog Version: 5.2.3
  • Java Version: 17.0.9+9
  • OpenSearch Version: 2.11.1
  • MongoDB Version: 5.0.24
  • Operating System: Ubuntu 22.04.3 LTS
  • Browser version: Any

smwinn avatar Jan 22 '24 19:01 smwinn

What previous version did you see this syntax work correctly?

sethgraylog avatar Jan 29 '24 15:01 sethgraylog

I believe it broke when I went from 5.1 to 5.2.

smwinn avatar Jan 29 '24 16:01 smwinn

This is due to #16196. While that flags some bad syntax, it was too broad and now prevents legal expressions. I commented out those 3 lines and was able to extract the geoIP data successfully.

patrickmann avatar Feb 08 '24 16:02 patrickmann