This will be very similar to the question you asked about filtering on just the key length
ruby {
code => '
event.to_hash.each { |k, v|
if k.length > 15 and v.length > 100
event.remove(k)
end
}
'
}