A short survey of log collection options and why you picked the wrong one. 😜
I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?
Number | what it means |
---|---|
101,332,633 | unique visitors in 2017 |
UEsDBBQAAAAIABNQjFGCf/GfLgAAACwAAAAHAAAAUHJvLmtleTMqdncpCXQOKDAp9woMzEo1MTVOrHAzTjTLME7VNs1LK8owTjQpcU8tcuLlAgBQSwECFAAUAAAACAATUIxRgn/xny4AAAAsAAAABwAAAAAAAAAAAAAAAAAAAAAAUHJvLmtleVBLBQYAAAAAAQABADUAAABTAAAAAAA= |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: fluent-bit-config | |
namespace: logging | |
labels: | |
k8s-app: fluent-bit | |
data: | |
# Configuration files: server, input, filters and output | |
# ====================================================== |
stages: | |
- test | |
unit_test: | |
stage: test | |
image: | |
name: tfsec/tfsec-ci | |
entrypoint: | |
- '/usr/bin/env' | |
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' | |
script: |
{ | |
"agent": { | |
"metrics_collection_interval": 10, | |
"logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log" | |
}, | |
"metrics": { | |
"metrics_collected": { | |
"cpu": { | |
"resources": [ | |
"*" |
Gist for https://www.youtube.com/watch?v=38di3_iVDIA
kopia repository create s3 --bucket=<<bucketId>>
kopia repository validate-provider
kopia repository status
kopia snapshot create /var/lib/jenkins
kopia snapshot list
kopia diff <a> <b>
import boto3 | |
from boto3.session import Session | |
def assume_role(arn, session_name): | |
"""aws sts assume-role --role-arn arn:aws:iam::00000000000000:role/example-role --role-session-name example-role""" | |
client = boto3.client('sts') | |
account_id = client.get_caller_identity()["Account"] | |
print(account_id) |
import boto3 | |
import botocore | |
import time | |
def handler(event=None, context=None): | |
client = boto3.client('ssm') | |
instance_id = 'i-07362a00952fca213' # hard-code for example | |
response = client.send_command( |
Getting Started & Setting Up Labs : Choosing a right Infrastructure as Code tool | |
******************************************************************************** | |
- Terraform | |
- CloudFormation | |
- Heat | |
- Ansible | |
- SaltStack | |
- Chef, Puppet and Others | |
from boto3.session import Session | |
from botocore.client import Config | |
from botocore.handlers import set_list_objects_encoding_type_url | |
import boto3 | |
ACCESS_KEY = "xx" | |
SECRET_KEY = "yy" | |
boto3.set_stream_logger('') |