This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
## | |
# Assumes Basic Understanding of PCF, Elasticsearch, Kibana and logstash | |
# Should support Elasticstack 7.X | |
## | |
## | |
# Step 1: Setup index template | |
# Save this file https://gist.github.com/bvader/addf80083b170e0cfcd78f946a78d50e | |
# to pcf_space_drain_log_template.json | |
# Then run the following command replacing the username, password and elasticearchhost |
# This only works with the following docker logging drivers currently: journald, json-file, and CRI-O log files | |
global(processInternalMessages="on") | |
global(parser.permitSlashInProgramName="on") | |
global(workDirectory="/var/spool/rsyslog") # default location for work (spool) files | |
# Raise limits within /etc/systemd/journald.conf on the host(s) - ie., RateLimitIntervalSec=30s + RateLimitBurst=1000000 | |
module(load="imjournal" ignorepreviousmessages="on" ratelimit.interval="60" ratelimit.burst="2000000" persiststateinterval="10000" statefile="/var/spool/rsyslog/imjournal.state") | |
module(load="mmutf8fix") | |
module(load="mmkubernetes" | |
tls.cacert="/run/secrets/kubernetes.io/serviceaccount/ca.crt" | |
tokenfile="/run/secrets/kubernetes.io/serviceaccount/token" |