Currently I'm using basic API gets to pull down logs from a cloud security vendor but it's not a very clean process. I would like to transition over to the event streaming (AMQPS) service they provide.
I've already setup the queue and have the relevant information on the cloud side but the issue I'm running into is figuring out the best way to accept that stream and dump them to syslog. I'm utilizing syslog-ng right now but it looks like it can only send to RabbitMQ and not accept it.
I'm currently looking at Pika to see if that would work to accept AMQPS and then funnel it to a log file but that's where I'm running into some problems. Any help would be greatly appreciated.
Thanks
I found a github page made by walbit (https://github.com/walbit/AMP_API), that appears to be working correctly for me. I'm using the "consume_event_stream_by_name.py" and it dumps all of the input to standard out. I made a slight modification to send it to syslog as well and now syslog-ng is accepting it.
My only issue at the moment with this code is that it seems to be timing out from time to time or dying overall if connections aren't coming in. So I need to figure out what is going on with that.