mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 16:50:42 +01:00
8 lines
184 B
Python
8 lines
184 B
Python
import json
|
|
|
|
with open("work") as json_file:
|
|
json_data = json.load(json_file)
|
|
json_data = json_data["hits"]
|
|
for item in json_data["hits"]:
|
|
print item["_source"]["msgnum"]
|