How to send logs to http output plugins conditionally

This has an example of how to process conditionally based on age.