Skip to content

profiling: activate when Suricata starts in pcap reader mode#11282

Closed
jlucovsky wants to merge 2 commits into
OISF:masterfrom
jlucovsky:6550/1
Closed

profiling: activate when Suricata starts in pcap reader mode#11282
jlucovsky wants to merge 2 commits into
OISF:masterfrom
jlucovsky:6550/1

Conversation

@jlucovsky
Copy link
Copy Markdown
Contributor

Continuation of #9755

Activate rule profiling on Suricata startup with a new config variable:

profiling:
   rules:
       active: yes # Default off

Link to ticket: https://redmine.openinfosecfoundation.org/issues/6550
Describe changes:

  • Activate rule profiling when Suricata starts (helpful when reading from pcaps)

Provide values to any of the below to override the defaults.

  • To use an LibHTP, Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

regit added 2 commits June 10, 2024 08:32
When replaying a pcap file, it is not possible to get rules
profiling because it has to be activated from the unix socket.
This patch adds a new option to be able to activate profiling
collection at start so a pcap run can get rules profiling
information.
This fixes the state handling and simplify the logic.
@jlucovsky jlucovsky requested review from a team and victorjulien as code owners June 10, 2024 14:26
@jlucovsky jlucovsky mentioned this pull request Jun 10, 2024
3 tasks
@suricata-qa
Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline 21032

@victorjulien victorjulien added this to the 8.0 milestone Jun 10, 2024
@victorjulien
Copy link
Copy Markdown
Member

Merged in #11309, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants