I'm trying to use the jdbc_static filter in my logstash pipeline, but I am getting the following error:
[2025-04-29T10:36:48,983][WARN ][logstash.filters.jdbc.lookup][test][udplogstash] Parameter field not found in event {:lookup_id=>"loadingdata", :invalid_parameters=>["[account]", "[chaincode]"]}
My lookups is
local_lookups => [
{
id => "loadingdata"
query => "select ServiceName, ProcessorPartner from localstore where RNID = :RNID and ChainCode = :CHAINCODE"
parameters => {
RNID => "[account]"
CHAINCODE => "[chaincode]"
}
target => "attributes"
default_hash => {
ServiceName => nil
ProcessorPartner => nil
}
}
]
I know that account and chaincode could not be in the event but I supposed that the query would treat missing fields as null.
Plus, my account and chaincode come in as strings, even if they contain and integer, and I need to cast them to integer.
How would you modify my lookup to pass this problem?