This table offers sample conditional expressions you can create using various operators, event fields, and data types.
|
ArcSight Data Types |
Description |
|---|---|
|
Number or Integer, including MAC Address |
Using numeric (integer) fields, you can specify operators including To use Use the above operators for MAC addresses, for example:
|
|
String |
Using string fields, you can specify operators including |
|
DateTime |
Using DateTime fields, you can specify operators including You can enter DateTime values directly or click the ellipsis (...) button to select a date from a pop-up calendar or a special date keyword list. Special date keywords you can use are:
You can specify certain date operations with these system variables to add or subtract a number of specified days or hours. For example, you could type: |
|
IP Address |
Using IP address fields, you can specify operators including For IP address range formats, see IP Address Ranges. Caution: For the |
These same rules apply to the conditions editor used in defining rules, creating conditional reports, and filters.
Tip: Using variables
You can use all of the dynamic time parameters you see in the Active Channel Editor and elsewhere, such as $Now and $CurrentDateTime. The same is true for time elements, including s (second), m (minute), d (date), M (month), w (week), and y (year). To use any event data field as a variable, express its displayed name as a one-word, camel case string prefixed with a dollar sign; for example, "Source Address" is $sourceAddress. See the complete discussion in the topic Variables.