We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the pipeline function join() on a value emitted by select_jsonpath() results in quote characters being included in the string value.
Quote characters are not included in the value emitted by join
The string values emitted by join() include unwanted quotes when that value was emitted by select_jsonpath
select_jsonpath
This issue was previously addressed with a different pipeline function, lookup_all(): #17820
Paste this rule in the rule simulator and run it to see the output:
rule "test" when true then let j = "{\"test_key\": [ { \"name\": \"widget_10; widget_20\" }, { \"name\": \"widget_30\" } ] }"; let jp = parse_json ( j ); let jf = select_jsonpath ( json: jp, paths: { __jex: "$.test_key..name" } ); set_fields ( jf ); let jj = join ( elements: $message.__jex, delimiter: ";" ); set_field ( field: "joined_json_text", value: jj ); set_field ( field: "_direct_text_assignment", value: [ "widget_1; widget_2", "widget_3" ] ); let tj = join ( elements: $message._direct_text_assignment, delimiter: ";" ); set_field ( field: "joined_direct_text", value: tj ); end
The rule simulator output on Graylog 6.1.3:
Diagnosing this issue was a bit tricky, and the workaround requires an additional step of removing quotes in the output of join().
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using the pipeline function join() on a value emitted by select_jsonpath() results in quote characters being included in the string value.
Expected Behavior
Quote characters are not included in the value emitted by join
Current Behavior
The string values emitted by join() include unwanted quotes when that value was emitted by
select_jsonpath
Possible Solution
This issue was previously addressed with a different pipeline function, lookup_all(): #17820
Steps to Reproduce (for bugs)
Paste this rule in the rule simulator and run it to see the output:
The rule simulator output on Graylog 6.1.3:
Context
Diagnosing this issue was a bit tricky, and the workaround requires an additional step of removing quotes in the output of join().
Your Environment
The text was updated successfully, but these errors were encountered: