Skip to content

Instantly share code, notes, and snippets.

View ashmilhussain's full-sized avatar
🚀

Ashmil Hussain ashmilhussain

🚀
View GitHub Profile
@ashmilhussain
ashmilhussain / remote-rsyslog.go
Created October 15, 2020 04:53 — forked from giefferre/remote-rsyslog.go
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 {
@ashmilhussain
ashmilhussain / FlowLogs-to-S3-Lambda.py
Created April 15, 2021 05:39 — forked from mlapida/FlowLogs-to-S3-Lambda.py
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)