Skip to content

Instantly share code, notes, and snippets.

@gerhardqux
Created September 8, 2016 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerhardqux/e92a2bc949694bdf69c416376a3f4ad4 to your computer and use it in GitHub Desktop.
Save gerhardqux/e92a2bc949694bdf69c416376a3f4ad4 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys
import json
def main(file):
with open(file) as f:
for l in f:
line = json.loads(l)
print("\t".join([
line['asctime'],
line['msg']]))
if __name__ == '__main__':
main(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment