This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# This program would find the top n resources from a set of cloudtrail | |
# log files. Expects a local copy of the logs. You can do the same by: | |
# aws s3 sync s3://your.s3.cloudtrail.path /your/local/directory | |
# | |
# This script also expects the local AWS keys to deployed on the running machine | |
# Use this as your own caution | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
var ( | |
PROC_MAP = struct { | |
sync.RWMutex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
const ( | |
DefaultChannelSize = 100 |