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
find . -type f -exec cat {} ';' | goaccess --log-format=AWSS3 -r -0 GoAccessS3Report.html | |
find . -type f -exec cat {} ';' | goaccess --log-format=AWSELB -r -0 GoAccessELBReport.html |
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
Objective update all s3 buckets to a single logging bucket | |
Variables: | |
Target Bucket: [AccountId].logs | |
Target Prefix: s3/ | |
Replace $TargetPrfix and $TargetBucket | |
for i in `aws s3api list-buckets --query "Buckets[].Name" --output text`;do aws s3api put-bucket-logging --bucket $i --bucket-logging-status '{"LoggingEnabled":{"TargetPrefix":"$TargetPrfix'$i'/","TargetBucket":"'$TargetBucket'"}}';done |
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
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /usr/local/nginx/conf/nginx.conf | |
# pidfile: /var/run/nginx.pid |
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
worker_processes 6; | |
worker_rlimit_nofile 10240; | |
timer_resolution 500ms; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 10240; |
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
worker_processes 10 | |
pid "/var/www/webapp/tmp/pids/unicorn.pid" | |
stderr_path "/var/log/unicorn.stderr.log" | |
stdout_path "/var/log/unicorn.stdout.log" | |
working_directory "/var/www/webapp/" | |
listen '/var/sockets/unicorn.sock', :backlog => 64 |