This feature is used to reduce the number of logged alerts for noisy rules. This can be tuned to significantly reduce false alarms, and it can also be used to write a newer breed of rules. Thresholding commands limit the number of times a particular event is logged during a specified time interval.
More...
|
| void | ThresholdInit (void) |
| |
| void | ThresholdDestroy (void) |
| |
| uint32_t | ThresholdsExpire (const SCTime_t ts) |
| |
| | RB_HEAD (THRESHOLD_CACHE, ThresholdCacheItem) |
| |
| | RB_PROTOTYPE (THRESHOLD_CACHE, ThresholdCacheItem, rb, ThresholdCacheTreeCompareFunc) |
| |
| | RB_GENERATE (THRESHOLD_CACHE, ThresholdCacheItem, rb, ThresholdCacheTreeCompareFunc) |
| |
| void | ThresholdCacheThreadFree (void) |
| |
| const DetectThresholdData * | SigGetThresholdTypeIter (const Signature *sig, const SigMatchData **psm, int list) |
| | Return next DetectThresholdData for signature. More...
|
| |
| void | FlowThresholdVarFree (void *ptr) |
| |
| int | PacketAlertThreshold (const DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const DetectThresholdData *td, Packet *p, const Signature *s, PacketAlert *pa) |
| | Make the threshold logic for signatures. More...
|
| |
This feature is used to reduce the number of logged alerts for noisy rules. This can be tuned to significantly reduce false alarms, and it can also be used to write a newer breed of rules. Thresholding commands limit the number of times a particular event is logged during a specified time interval.
◆ GID
◆ REV
◆ SID
◆ TC_ADDRESS
◆ TC_GID
◆ TC_REV
◆ TC_SID
◆ TC_TENANT
◆ TENANT
◆ TRACK
◆ FlowThresholdEntryList
◆ FlowVarThreshold
struct for storing per flow thresholds. This will be stored in the Flow::flowvar list, so it needs to follow the GenericVar header format.
◆ ThresholdCacheItem
◆ ThresholdEntry
◆ FlowThresholdVarFree()
| void FlowThresholdVarFree |
( |
void * |
ptr | ) |
|
◆ PacketAlertThreshold()
◆ RB_GENERATE()
◆ RB_HEAD()
◆ RB_PROTOTYPE()
| RB_PROTOTYPE |
( |
THRESHOLD_CACHE |
, |
|
|
ThresholdCacheItem |
, |
|
|
rb |
, |
|
|
ThresholdCacheTreeCompareFunc |
|
|
) |
| |
◆ SigGetThresholdTypeIter()
Return next DetectThresholdData for signature.
- Parameters
-
| sig | Signature pointer |
| psm | Pointer to a Signature Match pointer |
| list | List to return data from |
- Return values
-
| tsh | Return the threshold data from signature or NULL if not found |
Definition at line 473 of file detect-engine-threshold.c.
◆ ThresholdCacheThreadFree()
| void ThresholdCacheThreadFree |
( |
void |
| ) |
|
◆ ThresholdDestroy()
| void ThresholdDestroy |
( |
void |
| ) |
|
◆ ThresholdInit()
| void ThresholdInit |
( |
void |
| ) |
|
◆ ThresholdsExpire()
| uint32_t ThresholdsExpire |
( |
const SCTime_t |
ts | ) |
|
◆ cache_housekeeping_check
| thread_local uint64_t cache_housekeeping_check = 0 |
◆ cache_housekeeping_expired
| thread_local uint64_t cache_housekeeping_expired = 0 |
◆ cache_lookup_cnt
| thread_local uint64_t cache_lookup_cnt = 0 |
◆ cache_lookup_hit
| thread_local uint64_t cache_lookup_hit = 0 |
◆ cache_lookup_miss
| thread_local uint64_t cache_lookup_miss = 0 |
◆ cache_lookup_miss_expired
| thread_local uint64_t cache_lookup_miss_expired = 0 |
◆ cache_lookup_nosupport
| thread_local uint64_t cache_lookup_nosupport = 0 |
◆ cache_lookup_notinit
| thread_local uint64_t cache_lookup_notinit = 0 |
◆ ctx
Referenced by AppLayerParserRegisterUnittests(), AppLayerParserStateProtoCleanup(), CreateEveThreadCtx(), DetectBsizeMatch(), DetectBytejumpDoMatch(), DetectBytetestDoMatch(), DetectEngineContentInspection(), DetectEngineContentInspectionBuffer(), DetectEntropyDoMatch(), DetectFlowbitMatch(), DetectFlowintMatch(), DetectFlowMatch(), DetectFlowvarMatch(), EngineAnalysisRules2(), FirewallAnalyzer(), FreeEveThreadCtx(), OutputJsonBuilderBuffer(), OutputJsonFlush(), SCACDestroyCtx(), SCACPreparePatterns(), SCACPrintInfo(), SCACSearch(), SCACTilePreparePatterns(), SCACTilePrintInfo(), SCACTileSearchLarge(), SCDetectHelperKeywordRegister(), SCLuaSbGetContext(), SCProfilingKeywordThreadSetup(), SCProfilingPrefilterThreadSetup(), SCProfilingSghThreadSetup(), SpmDestroyCtx(), SpmScan(), THashCleanup(), THashConsolidateMemcap(), THashExpire(), THashInit(), THashWalk(), ThresholdsExpire(), TmqhOutputFlowFreeCtx(), TmqhOutputFlowHash(), TmqhOutputFlowIPPair(), and TmqhOutputFlowSetupCtx().
◆ threshold_cache_housekeeping_ts
| thread_local uint64_t threshold_cache_housekeeping_ts = 0 |
◆ threshold_cache_tree
| thread_local struct THRESHOLD_CACHE threshold_cache_tree |