Skip to content

Instantly share code, notes, and snippets.

Working from home

Jan Doberstein jalogisch

Working from home
View GitHub Profile
jalogisch / fix_virtualenv
Created Jan 31, 2020 — forked from tevino/fix_virtualenv
Fix python virtualenv after python update
View fix_virtualenv
#!/usr/bin/env bash
ENV_PATH="$(dirname "$(dirname "$(which pip)")")"
SYSTEM_VIRTUALENV="$(which -a virtualenv|tail -1)"
echo "Ensure the root of the broken virtualenv:"
echo " $ENV_PATH"
jalogisch / run.bash
Created Aug 31, 2018
The `tmp.json` contains the access rights that are needed to create tokens and the `run.bash` show how to add this via Graylog API and assing a user to this role.
View run.bash
http -a admin POST https://nuci3.local.lan/graylog/api/roles < tmp.json
http: password for admin@nuci3.local.lan:
HTTP/1.1 201 Created
Connection: keep-alive
Content-Length: 206
Content-Type: application/json
Date: Tue, 15 May 2018 13:30:08 GMT
Server: nginx/1.12.2
Strict-Transport-Security: max-age=63072000; includeSubdomains; preload
jalogisch /
Last active Aug 17, 2018
This little tool will help you to test if your Graylog server is able to reach the Graylog License API - the parameters of the trustStore and the proxy might be added and modified to fit your local needs.
// Based on java example:
// save as:
// compile using JDK: javac
// run: java -Dhttp.proxyHost= -Dhttp.proxyPort=8800 URLConnectionReader
// if additional debugging is needed add to the above
// good path: returns HTML
// bad path: throws an exception
View gist:468c810d5a6f7066de264c8a0d24e7ed
Elasticsearch HTTPS:
- X-Pack (Elastic Kostenpflichtig)
- Search Guard (OSS & Pay Plan)
- NGINX Proxy ( )
MongoDB TLS:
- Certificate based authentication is tricky but can be done
Graylog TLS:
View 10-cisco-elasticsearch.conf
# INPUT - Logstash listens on port 8514 for these logs.
input {
udp {
port => "8514"
type => "syslog-cisco"
jalogisch /
Created Jan 19, 2018 — forked from tboeghk/
Deployments, Services and Ingresses to run a recent Graylog2 on Kubernetes in #yolo mode without any persistence.

These Kubernetes resources deploy a recent Graylog2 cluster on Kubernetes in #yolo mode without any persistence – The ideal way to quickly run, inspect and adapt a Graylog cluster in Kubernetes. The Deployment will install:

  • Graylog 2.4.0
  • Elasticsearch 5.6.3
  • Kibana 5.6.3

Deploy Graylog

View graylog2-docker-compose.yml
version: '2'
driver: "local"
driver: "local"
jalogisch /
Created Sep 4, 2017 — forked from soarez/
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

jalogisch / nginx_graylog.conf
Last active Aug 23, 2017
Graylog behind NGINX Proxy in a sub-directory
View nginx_graylog.conf
# Graylog in Subdirectorie
# server.conf settings:
# rest_listen_uri =
# web_listen_uri =
server {
listen 80 ;
server_name g1422.lan;
jalogisch / 0_reuse_code.js
Created Feb 7, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.