Skip to content

Commit

Permalink
crons/http-stats.py: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-makar committed Feb 25, 2021
1 parent 1446c37 commit ebf06e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crons/http-stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
http_entries = {}
for record in elasticsearch.search(query, start):
flow_id = record['_source']['flow_id']
if 'hostname' not in record['_source']['http']:
logging.warning('http record with http.hostname missing (flow_id = %d)', flow_id)
continue
hostname = record['_source']['http']['hostname']

if flow_id in http_entries:
Expand Down

0 comments on commit ebf06e4

Please sign in to comment.