Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Ignore alerts.txt in tcpflow output
Browse files Browse the repository at this point in the history
This file is produced at least by some versions of tcpflow
(e.g. 1.4.4 in Ubuntu trusty).
  • Loading branch information
vfaronov committed Aug 13, 2016
1 parent 40a4aa8 commit 3a3632e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpolice/inputs/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def tcpflow_input(paths):
streams_info = []
seen = {}
for name in os.listdir(dir_path):
if name == 'report.xml':
if name in ['report.xml', 'alerts.txt']:
continue
match = re.match(r'^(\d+)-([^-]+-\d+)-([^-]+-\d+)-\d+$', name)
if not match:
Expand Down

0 comments on commit 3a3632e

Please sign in to comment.