Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/v1.1.0-239/omsagent-1.1.0-239.universal.x64.sh -O /tmp/omsagent.sh
sh /tmp/omsagent.sh --upgrade -w $1 -s $2
cp /etc/opt/microsoft/omsagent/sysconf/omsagent.conf /etc/opt/microsoft/omsagent/conf/omsagent.conf
wget -O /etc/opt/microsoft/omsagent/conf/omsagent.d/hbase.conf http://ashishdata.blob.core.windows.net/oms/hbase.conf
sudo service omsagent restart
#!/bin/bash
# Get the OMS Agent for Linux
wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/OMSAgent_GA_v1.2.0-25/omsagent-1.2.0-25.universal.x64.sh -O /tmp/omsagent-1.2.0-25.universal.x64.sh
# Install and onboard the OMS Agent for Linux
sh /tmp/omsagent-1.2.0-25.universal.x64.sh --upgrade -w $1 -s $2
# Get clean configuration
cp /etc/opt/microsoft/omsagent/sysconf/omsagent.conf /etc/opt/microsoft/omsagent/conf/omsagent.conf
#!/bin/bash
wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/OMSAgent_GA_v1.2.0-25/omsagent-1.2.0-25.universal.x64.sh -O /tmp/omsagent.x64.sh
sudo sh /tmp/omsagent.x64.sh --purge
@agup006
agup006 / kubernetes.md
Last active October 21, 2022 14:48
Kubernetes Commands
@agup006
agup006 / example-2.conf
Last active March 16, 2021 00:46
The following are labs for Fluent Bit that you can run
# Visualized https://link.calyptia.com/5ht
[SERVICE]
flush 1
log_level info
parsers_file parsers.conf
streams_file streams-2.conf
[INPUT]
name tail
path /var/log/apache/*.log
79.172.141.87 - - [01/Feb/2022:06:40:58 +0000] "GET /wp-content HTTP/1.0" 200 5000 "https://thomas.com/search.jsp" "Mozilla/5.0 (iPad; CPU iPad OS 9_3_5 like Mac OS X) AppleWebKit/534.0 (KHTML, like Gecko) FxiOS/11.6r9285.0 Mobile/26R322 Safari/534.0"
17.67.206.39 - - [01/Feb/2022:06:41:28 +0000] "PUT /posts/posts/explore HTTP/1.0" 200 4966 "http://www.burns.net/" "Mozilla/5.0 (Windows NT 5.2; tt-RU; rv:1.9.1.20) Gecko/2015-05-23 16:51:49 Firefox/3.8"
180.54.101.99 - - [01/Feb/2022:06:42:31 +0000] "PUT /wp-content HTTP/1.0" 404 4943 "http://www.butler.org/posts/blog/register/" "Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; ckb-IQ) AppleWebKit/534.20.3 (KHTML, like Gecko) Version/4.0.5 Mobile/8B112 Safari/6534.20.3"
83.199.84.57 - - [01/Feb/2022:06:43:45 +0000] "GET /posts/posts/explore HTTP/1.0" 200 4973 "https://www.forbes.net/" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_6 like Mac OS X) AppleWebKit/531.2 (KHTML, like Gecko) CriOS/35.0.892.0 Mobile/71N101 Safari/531.2"
38.247.149.128 - - [01/Feb/2022:0
#!/bin/bash
#curl -X POST http://m3query:7201/api/v1/database/create -d '{
# "type": "local",
# "namespaceName": "default",
# "retentionTime": "12h"
#}'
#sleep 5;
apiVersion: v1
kind: Deployment
replicaCount: 1
rbac:
create: false
config:
service: |
[SERVICE]
Flush 5
Daemon Off
#!/usr/bin/env bash
set -eu
# Configuration variables, all of these should use the INSTALL_CALYPTIA_ prefix to make it simple and clear.
# Each handles a specific option that may also then be overridden via a command line argument too.
# Optionally install the Kubeshark tool, it is disabled by default, by setting to 'no'.
# See https://github.com/kubeshark/kubeshark for more detail.
DISABLE_KUBESHARK=${INSTALL_CALYPTIA_DISABLE_KUBESHARK:-yes}
# Optionally install the Kubernetes dashboard for k3s. Disabled by default so enable by setting to 'no'.
@agup006
agup006 / input-s3-example
Created December 8, 2022 19:40
input-s3
[INPUT]
Name go-s3-replay-plugin
Tag bo-api
aws_access_key {{ secrets.aws_access_key }}
aws_secret_key {{ secrets.aws_secret_key }}
aws_bucket_name bucket-calyptia-0011
aws_bucket_region us-east-2