Ignore:
Timestamp:
Dec 7, 2009, 10:00:29 PM (15 years ago)
Author:
katerina
Message:

Support event correlation (ticket #178).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_log_check.c

    r257 r260  
    2828
    2929/* List of supported logfile types, format is
    30  * { "TYPE_CODE", Reader_Callback_Function, Parser_Callback_function }
     30 * {
     31 *   "TYPE_CODE",
     32 *   Reader_Callback_Function,
     33 *   Parser_Callback_function,
     34 *   Evaluate_Callback_Function
     35 * }
    3136 * If Reader_Callback_Function is NULL, the default (line-oriented
    3237 * text file) reader is used.
     
    7883  plen = strlen(save_dir);
    7984
    80   if (SL_TRUE == sl_ok_adds(plen, 129))
    81     {
    82       plen += 129; /* 64 + 64 + 1 */
     85  if (SL_TRUE == sl_ok_adds(plen, 130))
     86    {
     87      plen += 130; /* 64 + 64 + 2 */
    8388      path = SH_ALLOC(plen);
    8489      (void) sl_snprintf(path, plen, "%s/%lu_%lu", save_dir,
     
    860865    {
    861866      sh_check_watches();
     867      sh_keep_match();
    862868    }
    863869  SH_MUTEX_UNLOCK(mutex_logmon_check);
     
    10361042
    10371043/* Define a check rule.
    1038  * Format: Queue_Label : Regex
    1039  * TYPE must be 'report' or 'sum'
     1044 * Format: [KEEP(seconds,label):]Queue_Label : Regex
     1045 * KEEP indicates that we keep the label, to perform
     1046 *      correlation matching
    10401047 */
    10411048static int sh_logmon_add_rule (const char * str)
Note: See TracChangeset for help on using the changeset viewer.