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

IPS stats/v3 #9285

Closed
wants to merge 5 commits into from
Closed

IPS stats/v3 #9285

wants to merge 5 commits into from

Commits on Jul 24, 2023

  1. stats: simplify ips capture stats logic

    Since many implementations use the ReleasePacket callback to issue
    their verdict, no thread ctx is available. To work around this
    just register the stats in a `thread_local` variable instead.
    victorjulien committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    54eade7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    100b0a8 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. stats: register ips capture stats for each packet thread

    ReleasePacket based verdicts can happen in several threads,
    depending on the runmode details.
    
    Only register and update if in IPS mode.
    victorjulien committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    485eca5 View commit details
    Browse the repository at this point in the history
  2. stats: update ips capture counters centrally

    This adds support to all capture methods for these counters.
    
    Ticket: OISF#4756.
    victorjulien committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    1b5ed4e View commit details
    Browse the repository at this point in the history
  3. stats: add drop reason counters

    {
      "accepted": 296185,
      "blocked": 162,
      "rejected": 0,
      "replaced": 0,
      "drop_reason": {
        "decode_error": 0,
        "defrag_error": 0,
        "defrag_memcap": 0,
        "flow_memcap": 0,
        "flow_drop": 94,
        "applayer_error": 0,
        "applayer_memcap": 0,
        "rules": 3,
        "threshold_detection_filter": 0,
        "stream_error": 63,
        "stream_memcap": 0,
        "stream_midstream": 2,
        "nfq_error": 0,
        "tunnel_packet_drop": 0
      }
    }
    
    Ticket: OISF#6230.
    victorjulien committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    411a344 View commit details
    Browse the repository at this point in the history