Skip to content

jdbc_parameters are picking nil values #1

@utkarsh17

Description

@utkarsh17

Parameters to be used to query database were always taking nil values for the set values.
:parameters=>{:name=>nil, :id=>nil}

Using hash[k] = event.sprintf(v); instead of hash[k] = event[event.sprintf(v)]; in line: https://github.com/wiibaa/logstash-filter-jdbc/blob/master/lib/logstash/filters/jdbc.rb#L53
did the job for me.

Actually I am new to logstash/ruby. Do not know if I am doing right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions