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

Empty value in end string #91

Open
duylong opened this issue May 15, 2020 · 1 comment
Open

Empty value in end string #91

duylong opened this issue May 15, 2020 · 1 comment

Comments

@duylong
Copy link

duylong commented May 15, 2020

Hi,

I can't split this string field : "rev=3&sid="

KV:

kv {
        enable_metric => false
        source => [ "[message]" ]
        target => "[test]"
        field_split => "&"
        value_split => "="
        trim_value => '"'
        whitespace => "strict"
}

Do you have also this issue?

@sprytnyserek
Copy link

Yes, I get the same. And from what I can see in kv.rb, it seems intentional, explicit and non-configurable

next if value.nil? || value.empty?

(and the same for "inner kv"). Dunno why... (?) Imo it's not what this plugin is supposed to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants