Commit 4d1d0dd
filter_geoip2: allow nested lookup paths beyond depth 2
geoip2 filter limited lookup path splitting to depth 2, which caused
nested paths like 'subdivisions.0.names.en' to be truncated and fail
at runtime.
This change allows unlimited nesting by using flb_utils_split(..., 4),
making array-backed fields such as subdivisions accessible.
So, we need to accept subdivitions elements.
For example,
the following configuration could be broken on loading because of
containing three dots or more.
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>1 parent f58598e commit 4d1d0dd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
0 commit comments