This file contains hidden or 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
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Resources": { | |
| "CloudTrail": { | |
| "Type": "AWS::CloudTrail::Trail", | |
| "Properties": { | |
| "EnableLogFileValidation": "True", | |
| "IncludeGlobalServiceEvents": "True", | |
| "IsLogging": "True", | |
| "IsMultiRegionTrail": "True", |
This file contains hidden or 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
| spec: | |
| containers: | |
| - name: mycontainer | |
| image: yourimage | |
| ports: | |
| - containerPort: 3000 | |
| env: | |
| - name: USERNAME | |
| value: "bob" |
This file contains hidden or 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
| $ sudo mkdir -p | |
| $ sudo mkdir -p /var/log/kolide/ | |
| $ sudo openssl genrsa -out server.key 4096 | |
| $ sudo openssl req -new -key server.key -out server.csr | |
| $ sudo openssl x509 -req -days 366 -in server.csr -signkey server.key -out server.cert |
This file contains hidden or 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
| import json | |
| def lambda_handler(event, context): | |
| import boto3 | |
| import time | |
| import random | |
| import string | |
| print(event) | |
| kinesis = boto3.client('kinesis') | |
| kineses_stream_name = "cloudvary" |
This file contains hidden or 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
| from __future__ import print_function | |
| import base64 | |
| print('Loading function') | |
| def lambda_handler(event, context): | |
| output = [] | |
| print(event) |
This file contains hidden or 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
| FROM ubuntu | |
| RUN apt update && apt install rsyslog -y | |
| RUN echo '$ModLoad imudp \n\ | |
| $UDPServerRun 514 \n\ | |
| $ModLoad imtcp \n\ | |
| $InputTCPServerRun 514 \n\ | |
| $template RemoteStore, "/var/log/remote/%$year%/%$Month%/%$Day%/%$Hour%.log" \n\ | |
| :source, !isequal, "localhost" -?RemoteStore \n\ | |
| :source, isequal, "last" ~ ' > /etc/rsyslog.conf | |
| ENTRYPOINT ["rsyslogd", "-n"] |
This file contains hidden or 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
| version: "3.7" | |
| # USAGE: | |
| # Create and start the cluster: docker-compose up -d | |
| # Tear down the cluster: docker-compose down | |
| # Reove everything including the volumes: docker-compose down -v | |
| services: | |
| # 1. Syslog server | |
| syslogserver: |
This file contains hidden or 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
| kind: Namespace | |
| apiVersion: v1 | |
| metadata: | |
| name: rsyslog |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: PersistentVolume | |
| metadata: | |
| name: efs | |
| namespace: "rsyslog" | |
| spec: | |
| capacity: | |
| storage: 500Gi | |
| volumeMode: Filesystem | |
| accessModes: |
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: rsyslog-deployment | |
| namespace: rsyslog | |
| labels: | |
| app: rsyslog | |
| spec: | |
| replicas: 3 | |
| selector: |