Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test about enip stats with _udp prefix #1546

Closed

Conversation

catenacyber
Copy link
Collaborator

Ticket

Redmine ticket: https://redmine.openinfosecfoundation.org/issues/6304

Suricata PR OISF/suricata#9953 required

#1504 with more explicit testing

match:
event_type: flow
app_proto: enip
- filter:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this. If we have a flow with enip, shouldn't we also have a non-0 stats entry?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but that is another bug.

There are many cases where the stats do not reflect the number of flows

jq 'select(.event_type=="flow" and .app_proto=="ftp") | .app_proto' log/eve.json | wc -l
And
jq 'select(.event_type=="stats") | .stats."app_layer".flow.ftp' log/eve.json
do not give the same number

cf OISF/suricata#8328

@catenacyber
Copy link
Collaborator Author

Replaced by #1547

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires suricata pr Depends on a PR in Suricata
Development

Successfully merging this pull request may close these issues.

2 participants