rsyslog/tests/es_response_get_msgnum.py
2014-09-02 17:58:27 +02:00

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"]