Skip to content

Instantly share code, notes, and snippets.

View scrossan's full-sized avatar

Steven Crossan scrossan

View GitHub Profile
@scrossan
scrossan / beat.yml
Created March 2, 2023 18:42
Example beat spec that does not ship metrics to a monitoring cluster
---
apiVersion: v1
kind: Secret
metadata:
name: elastic-settings
type: Opaque
stringData:
password: REDACTED
url: https://elastic.example.com:443
username: REDACTED
{"log.level":"info","@timestamp":"2022-12-13T20:55:36.962Z","log.logger":"beat-controller","message":"Starting reconciliation run","service.version":"2.5.0+642f9ecd","service.type":"eck","ecs.version":"1.4.0","iteration":"473","namespace":"elastic-system","beat_name":"sandbox-elastic"}
{"log.level":"info","@timestamp":"2022-12-13T20:55:36.962Z","log.logger":"beat-controller","message":"Association not established: skipping association resource reconciliation","service.version":"2.5.0+642f9ecd","service.type":"eck","ecs.version":"1.4.0","iteration":"473","namespace":"elastic-system","beat_name":"sandbox-elastic","kind":"Beat","namespace":"elastic-system","name":"sandbox-elastic","ref_namespace":"elastic-system","ref_name":"elastic-monitoring-settings"}
{"log.level":"info","@timestamp":"2022-12-13T20:55:36.962Z","log.logger":"beat-controller","message":"Association not established: skipping association resource reconciliation","service.version":"2.5.0+642f9ecd","service.type":"eck","ecs.version":"1.4.0","iterat
@scrossan
scrossan / Dockerfile
Created October 12, 2022 17:36
A Dockerfile to build a working winlogbeat-on-linux image (useful for running `winlogbeat setup`)
# courtesy of @hinchliff / https://github.com/elastic/beats/issues/13707#issuecomment-1010119726
# docker build . -t winlogbeat-on-linux:8.4.1
FROM golang:8.4.1
ARG version=7.16.2
# Install virtualenv. Required for beats build processes.
RUN apt-get update --no-install-recommends
resource "google_service_account" "f5_bigip_user" {
account_id = "f5-bigip-user"
description = "User for F5 BIGIP"
}
resource "random_password" "bigip_user" {
length = 30
}
module "bigip" {

Keybase proof

I hereby claim:

  • I am scrossan on github.
  • I am scrossan1 (https://keybase.io/scrossan1) on keybase.
  • I have a public key whose fingerprint is 2DEC DEAB BDC0 FD92 94A1 99D8 656D 41FF EA7C 3D5F

To claim this, I am signing this object:

@scrossan
scrossan / example.tf
Created June 15, 2016 08:32
Example of the way Terraform re-orders firewall rules in an Openstack firewall policy
provider "openstack" {
tenant_name = "REDACTED"
auth_url = "REDACTED"
}
variable "region" { default = "REDACTED" }
resource "openstack_fw_policy_v1" "policy" {
name = "test policy"
region = "${var.region}"