Skip to content

Instantly share code, notes, and snippets.

@aliorhun
Created August 11, 2021 07:07
Show Gist options
  • Select an option

  • Save aliorhun/77bbdeb7144d53cae788d01294752b88 to your computer and use it in GitHub Desktop.

Select an option

Save aliorhun/77bbdeb7144d53cae788d01294752b88 to your computer and use it in GitHub Desktop.
jsonimportlogfile
import json
with open('a.log') as f:
for line in f:
#print(line)
data = json.loads(line)
print(data['timestamp'])
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment