first time poster.
I've started using logstash to collect event data. The requirement I have is to send this information as a file attachment using a rest api.
Now, I'd rather not go to the "expense" of having to write an actual file so I was going to wrap it in a "fake" file resource in someway. I'm assuming a custom ruby plug-in could/should be used for that and that you'd call that in the filter portion of logstash.
Next I want to send the file using the http output plugin. I'm able to send info to the rest api using another api call that just streams the data but I've no idea how to do this in logstash.
Equally I'm wondering if this is just a total "abuse" of what I should be doing and maybe I'm going about this the wrong way?
The api is a third party api so unfortunately can't be changed.