Skip to main content
Skip table of contents

Use Multiple Filters

When adding multiple filters, you can select operators to set relationships among them.

  1. From the feature you want to add a filter to, select an option in the Add New Field Filter.
  2. Click Edit Values.
  3. Add Items or Lists, and then click OK.
  4. Add a second Field Filter.
  5. Both filters now appear in the grid in the Add New Field Filter dialog box.
  6. In the Operator column, select the operator you need.

    OperatorBehavior
    ANDAll criteria before and after the AND operator must be met.
    OREither the criteria before or after the OR must be met.
    AND PREVIOUSAll criteria after the AND PREVIOUS operator must be met. In addition, all criteria before the AND PREVIOUS but after an AND/OR operator must be met.
    OR PREVIOUSOne or more criteria after the OR PREVIOUS operator must be met. Alternatively, any criteria before the OR PREVIOUS but after an AND/OR operator can be met.
  7. (Optional) Add more field filters as necessary and configure the operators. Operators included in searches and filters are validated and must meet the following rules to be run.
    • An expression can contain unlimited AND or OR operators, but all operators must be one or the other:
      • VALID: a AND b AND c AND d
      • VALID: a OR b OR c OR d
      • INVALID a AND b OR c
    • AND PREVIOUS cannot immediately follow OR PREVIOUS:
      • VALID: a AND PREVIOUS b AND PREVIOUS c
      • INVALID: a OR PREVIOUS b AND PREVIOUS c
    • OR PREVIOUS cannot immediately follow AND PREVIOUS:
      • VALID: a OR PREVIOUS b OR PREVIOUS c
      • INVALID: a AND PREVIOUS b OR PREVIOUS c

    Valid expressions are show in the following table.

    LogRhythm ExpressionExpression As Compiled
    a AND b AND ca AND b AND c
    a OR b OR ca OR b OR c
    a AND b OR PREVIOUS c OR PREVIOUS da AND (b OR c OR d)
    a OR b AND PREVIOUS c AND PREVIOUS da OR (b AND c AND d)
  8. When you are finished adding all field filters you need, click OK.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.