You can set a time or date range condition for your query. This improves the efficiency of your query by narrowing the portion of the event log store it must search.
You can use a predefined time range, or create a custom time range. For a custom time range to work properly you must set both a beginning and end time. If you only set a single time parameter, it is expressed as a "Where" clause in the query SQL.
To set result conditions
Note: If you are creating an action alert or scheduled report, the interface displays the following default time ranges:
The Dynamic Time Specification dialog appears.
The Dynamic Time Specification dialog closes, and the values you choose appear in the 'Dynamic End Time' area. If you use multiple parameters, they form a complete time statement, with each parameter referring to the first. For example, adding the 'Start of the Month,' and 'Day of the Week - Tuesday' values in the 'Dynamic End Time' area will end your query on the first Tuesday of the month.
Note: When using the 'Number of' values, such as 'Number of days' or Number of hours' you must enter a negative number to set a time in the past. Using a positive number will set a future end time, and cause the query to continue sending results as long as at least one qualified event is in the log store.
For example, adding the 'now,' and 'number of minutes -10' values to the 'Dynamic Start Time' area starts your query 10 minutes before the selected end time.
If you do not enter a date range, the query is applied all events in the log store. If you enter an invalid date range, your query might not return any results.
If you click Save and Close the new query appears in the Query List, otherwise the Query Design step you choose appears.
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |