Conversation
Moving it to be able to use it globally later. Ticket: OISF#7888
There was a regression between Suricata 7 and Suricata 8. The app_proto was logged in almost all events in 7 and is only log in a small subset (fileinfo, flow, frame, netflow) in 8. This patch updates the code to log app_proto in all events if there is a Flow available. It is making use of EveAddAppProto function to get interesting information such as original application protocol or difference between server and client side. Ticket: OISF#7888
50f2e65 to
32634bd
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13810 +/- ##
=======================================
Coverage 83.71% 83.72%
=======================================
Files 1011 1011
Lines 275116 275115 -1
=======================================
+ Hits 230321 230330 +9
+ Misses 44795 44785 -10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Would be nice to get a |
I did not investigate. I'll try to get that. |
OUTCH, really sorry, this is not a regression. I forgot one patch was bringing that to the 7.0.x branch I did test. So this issue becomes a feature request. I'm updating redmine. |
|
https://redmine.openinfosecfoundation.org/issues/7888 for the record ;-) |
catenacyber
left a comment
There was a problem hiding this comment.
So, the commit message needs to be changed :-p
There was a regression between Suricata 7 and Suricata 8.
Otherwise, code and tests look good...
I wonder if this should be optional (as logs become more verbose)
I guess this deserves an upgrade note
I agree on this becoming optional. But could there maybe be a shorter version, instead of all or nothing? (Not fully sure if such a thing would make sense 🤔 ) |
|
@regit will you come back to this ? |
Hello, yes. I will work on it this week. |
I'm not feeling like adding a new option for that. Should we introduce a version in EVE configuration section so we can preserve backward compatibility by reading that in the YAML and only setting up the log if version is above the chosen value ? |
I've pushed an implementation of this concept there: https://github.com/regit/suricata/tree/app_proto_logging-v2 |
|
So, should you open a draft PR with this v2 branch ? Or ? |
Yes, just wanted to get some feedback on it first but here is the PR: #14760 |
There was a regression between Suricata 7 and Suricata 8. The app_proto was logged in almost all events in 7 and is only log in a small subset (fileinfo, flow, frame, netflow) in 8.
This patch updates the code to log app_proto in all events if there is a Flow available. It is making use of EveAddAppProto function to get interesting information such as original application protocol or difference between server and client side.
Contribution style:
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
Our Contribution agreements:
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Changes (if applicable):
(including schema descriptions)
https://redmine.openinfosecfoundation.org/projects/suricata/issues
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
Describe changes:
SV_BRANCH=OISF/suricata-verify#2640