Skip to content

Instantly share code, notes, and snippets.

View ashmilhussain's full-sized avatar
🚀

Ashmil Hussain ashmilhussain

🚀
View GitHub Profile
@mlapida
mlapida / FlowLogs-to-S3-Lambda.py
Last active April 15, 2021 05:39
A Lambda Function for streaming and translating flow logs on the fly. This example was used for HP ArcSight. A full writeup can be found on my site http://mlapida.com/thoughts/exporting-cloudwatch-logs-to-s3-lambda
import boto3
import logging
import json
import gzip
import urllib
import time
from StringIO import StringIO
logger = logging.getLogger()
logger.setLevel(logging.INFO)
@giefferre
giefferre / remote-rsyslog.go
Created March 31, 2015 23:16
Using a remote rsyslog in Golang
package main
import (
"log"
"log/syslog"
)
func main() {
logwriter, e := syslog.Dial("tcp","123.123.123.123:12345", syslog.LOG_DEBUG, "your.software.identifier")
if e != nil {