Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

MONGO_LOG %{SYSLOGTIMESTAMP:timestamp} \[%{WORD:component}\] %{GREEDYDATA:message}
MONGO_QUERY \{ (?<={ ).*(?= } ntoreturn:) \}
MONGO_SLOWQUERY %{WORD} %{MONGO_WORDDASH:database}\.%{MONGO_WORDDASH:collection} %{WORD}: %{MONGO_QUERY:query} %{WORD}:%{NONNEGINT:ntoreturn} %{WORD}:%{NONNEGINT:ntoskip} %{WORD}:%{NONNEGINT:nscanned}.*nreturned:%{NONNEGINT:nreturned}..+ (?<duration>[0-9]+)ms
MONGO_WORDDASH \b[\w-]+\b
MONGO3_SEVERITY \w
MONGO3_COMPONENT %{WORD}|-
MONGO3_LOG %{TIMESTAMP_ISO8601:timestamp} %{MONGO3_SEVERITY:severity} %{MONGO3_COMPONENT:component}%{SPACE}(?:\[%{DATA:context}\])? %{GREEDYDATA:message}

Keybase proof

I hereby claim:

  • I am dschneller on github.
  • I am dschneller (https://keybase.io/dschneller) on keybase.
  • I have a public key whose fingerprint is 3434 5185 C287 BC4D D5E9 D084 3519 E4D5 3C5A D538

To claim this, I am signing this object:

@dschneller
dschneller / gist:eddcdcbd7c5a15f775d4
Created May 15, 2015 12:55
Logstash 1.5rc4 -- Hanging Threads
This file has been truncated, but you can view the full file.
2015-05-15 14:25:58
Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.71-b01 mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007f1e0000e000 nid=0x31a8 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"pool-2-thread-411" prio=10 tid=0x00007f1de433c800 nid=0x318b in Object.wait() [0x00007f1b1edb3000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:461)
@dschneller
dschneller / de.danielschneller.discoverydactivedirectory.plist
Created April 13, 2015 11:23
LaunchDaemon to enable "Active Directory Mode" for OSX Yosemite on Login. Put into /Library/LaunchDaemons. Fixes ".local" name resolution.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>de.danielschneller.discoverydactivedirectory</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/discoveryutil</string>
<string>activedirectory</string>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BBEditDocumentType</key>
<string>CodelessLanguageModule</string>
<key>BBLMLanguageDisplayName</key>
<string>Dell Switch</string>
<key>BBLMLanguageCode</key>
<string>DlSw</string>
#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#
# This definition stops the following lines choking if HOME isn't
# defined.
HOME = .
RANDFILE = $ENV::HOME/.rnd
#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#
# This definition stops the following lines choking if HOME isn't
# defined.
HOME = .
RANDFILE = $ENV::HOME/.rnd
? openssl-samples find .
.
./EXAMPLE.COM
./EXAMPLE.COM/example.com.key
./EXAMPLE.COM/www.example.com.crt
./EXAMPLE.COM/www.example.com.csr
./INTERMEDIATE
./INTERMEDIATE/certs
./INTERMEDIATE/crl
./INTERMEDIATE/index.txt
? INTERMEDIATE openssl ca -config intermediate.cnf -in ../EXAMPLE.COM/www.example.com.csr -out www.example.com.crt
Using configuration from intermediate.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 2097152 (0x200000)
Validity
Not Before: Jan 26 21:14:39 2015 GMT
Not After : Jan 26 21:14:39 2016 GMT
Subject:
? openssl-samples cd EXAMPLE.COM
? EXAMPLE.COM openssl genrsa -out example.com.key 2048
Generating RSA private key, 2048 bit long modulus
.................................................+++
..............................................................................................+++
e is 65537 (0x10001)
? EXAMPLE.COM openssl req -new -sha256 -key example.com.key -out www.example.com.csr
You are about to be asked to enter information that will be incorporated