Skip to content

Instantly share code, notes, and snippets.

View prowley's full-sized avatar

Pete Rowley prowley

View GitHub Profile

Keybase proof

I hereby claim:

  • I am prowley on github.
  • I am prowley (https://keybase.io/prowley) on keybase.
  • I have a public key ASA3nWiK7yy_0mi_wSZZDrYQNX8mEcuPcGn-2_EK3my0JAo

To claim this, I am signing this object:

@prowley
prowley / logpipe.py
Created August 8, 2015 15:52
Pipe winston JSON into a readable log format
#!/usr/bin/python
import json
import sys
while True:
input = sys.stdin.readline()
jsonInput = json.loads(input)
str = ''
if 'timestamp' in jsonInput:
str += jsonInput['timestamp'] + ':'