Custom Logstash snmp plugin pipeline approach

You would use a ruby filter. I have not checked if they are a close match for your use case, but this and this may give you some ideas.