Snmp poller - Logstash - Query

I have a query about the snmp plugin - (Logstash). I want to fetch the cpu and memory usage value from the network device through snmp OIDs . and i need to create the two different events(one is for CPU and another one is for Memory) in the external monitoring tool (through http output plugin (API) ). How can i achieve this ?