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
input { | |
kafka { | |
bootstrap_servers => "localhost:9092" | |
topics => "apache" | |
} | |
} | |
filter { | |
grok { | |
match => { "message" => "%{COMBINEDAPACHELOG}" } |
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 | |
import os | |
from botocore.vendored import requests | |
TOKEN = os.environ['TOKEN'] | |
API = "https://api.telegram.org/bot{}/".format(TOKEN) | |
def send_message(text, chat_id): | |
final_text = "Your Message was: " + text | |
url = API + "sendMessage?text={}&chat_id={}".format(final_text, chat_id) |
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
#!/bin/bash | |
apt-get update | |
apt-get -y install curl | |
# create staging directories | |
if [ ! -d /drop ]; then | |
mkdir /drop | |
fi | |
if [ ! -d /downloads ]; then |
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
#!/usr/bin/env bash | |
LOG_GROUP_NAME=${1:?log group name is not set} | |
echo Getting stream names... | |
LOG_STREAMS=$( | |
aws logs describe-log-streams \ | |
--log-group-name ${LOG_GROUP_NAME} \ | |
--query 'logStreams[*].logStreamName' \ | |
--output table | |
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
Description: (SO0062) - Distributed Load Testing on AWS is a reference architecture to perform application load testing at scale. Version v3.2.1 | |
AWSTemplateFormatVersion: "2010-09-09" | |
Metadata: | |
AWS::CloudFormation::Interface: | |
ParameterGroups: | |
- Label: | |
default: Console access | |
Parameters: | |
- AdminName | |
- AdminEmail |
OlderNewer