Created
August 11, 2021 07:07
-
-
Save aliorhun/77bbdeb7144d53cae788d01294752b88 to your computer and use it in GitHub Desktop.
jsonimportlogfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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