Skip to content

Instantly share code, notes, and snippets.

View boeboe's full-sized avatar

Bart Van Bos boeboe

View GitHub Profile
var _process, _process$env;
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function(sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable
})),
keys.push.apply(keys, symbols)
}
// Copyright (c) Tetrate, Inc 2023 All Rights Reserved.
package service
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
@boeboe
boeboe / gist:355bc1e2230f4cddbe5502451c8d0c70
Created April 27, 2021 22:48
k logs istiod-65df9b5b5f-fwd68
2021-04-27T22:33:17.356198Z info FLAG: --appNamespace=""
2021-04-27T22:33:17.356817Z info FLAG: --caCertFile=""
2021-04-27T22:33:17.356827Z info FLAG: --clusterID="cluster1"
2021-04-27T22:33:17.356833Z info FLAG: --clusterRegistriesNamespace="istio-system"
2021-04-27T22:33:17.356838Z info FLAG: --configDir=""
2021-04-27T22:33:17.356843Z info FLAG: --ctrlz_address="localhost"
2021-04-27T22:33:17.356851Z info FLAG: --ctrlz_port="9876"
2021-04-27T22:33:17.356856Z info FLAG: --domain="cluster.local"
2021-04-27T22:33:17.356862Z info FLAG: --grpcAddr=":15010"
2021-04-27T22:33:17.356869Z info FLAG: --help="false"
# oc logs control-center-3873347051-xgv9x -f
#Ignoring Mesos override errors
. /etc/confluent/docker/apply-mesos-overrides || true
+ . /etc/confluent/docker/apply-mesos-overrides
#!/usr/bin/env bash
#
# Copyright 2016 Confluent Inc.
#
{
"name": "John Doe",
"age": 42,
"links": [ {
"rel": "self",
"href": "http://localhost:8080/user/0"
}, {
"rel": "address",
"href": "http://localhost:8080/user/0/address"
} ]
{
"name": "John Doe",
"age": 42,
"links": [ {
"rel": "self",
"href": "http://localhost:8080/user/0"
}, {
"rel": "address",
"href": "http://localhost:8080/user/0/address"
} ]
@boeboe
boeboe / bumpme
Last active January 25, 2017 14:29
Wed Jan 25 14:13:09 UTC 2017
@boeboe
boeboe / nginx
Created July 6, 2016 07:20
Nginx logstash patterns
NGUSERNAME [a-zA-Z\.\@\-\+_%]+
NGUSER %{NGUSERNAME}
NGINXACCESS %{IPORHOST:clientip} %{NGUSER:ident} %{NGUSER:auth} \[%{HTTPDATE:timestamp}\] "%{WORD:verb} %{URIPATHPARAM:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response} (?:%{NUMBER:bytes}|-) (?:"(?:%{URI:referrer}|-)"|%{QS:referrer}) %{QS:agent}
NGINXERROR1 (?<timestamp>%{YEAR}[./-]%{MONTHNUM}[./-]%{MONTHDAY}[- ]%{TIME}) \[%{LOGLEVEL:severity}\] %{POSINT:pid}#%{NUMBER}: %{GREEDYDATA:errormessage}(?:, client: (?<client>%{IP}|%{HOSTNAME}))(?:, server: %{IPORHOST:server})(?:, request: %{QS:request})(?:, upstream: %{QS:upstream})?(?:, host: %{QS:host})?(?:, referrer: \"%{URI:referrer}\")
NGINXERROR2 (?<timestamp>%{YEAR}[./-]%{MONTHNUM}[./-]%{MONTHDAY}[- ]%{TIME}) \[%{LOGLEVEL:severity}\] %{POSINT:pid}#%{NUMBER}: %{GREEDYDATA:errormessage}(?:, client: (?<clientip>%{IP}|%{HOSTNAME}))(?:, server: %{IPORHOST:server})(?:, request: %{QS:request}) ??(?:, host: %{QS:host})
NGINXERROR3 (?<timestamp>%{YEAR}[./-]%{MONTHNUM}[./-]%{MONTHDAY}[- ]%{TIME}) \[%{LOGLEVEL:se
@boeboe
boeboe / logstash.conf
Created July 6, 2016 07:18
Logstash configuration file
input {
beats {
port => 5044
}
}
filter {
if [type] == "syslog" {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
add_field => [ "received_at", "%{@timestamp}" ]
@boeboe
boeboe / filebeat.template.json
Created July 6, 2016 07:10
Default filebeat template for elastic search Raw
"filebeat" : {
"order" : 0,
"template" : "filebeat-*",
"settings" : {
"index" : {
"refresh_interval" : "5s"
}
},
"mappings" : {
"_default_" : {