The first step in creating a query is entering identifying information and setting any tags you want to include.
To add a new query
Applies the query to the event database, which stores all raw and refined event information received by the current server, or available through federation.
Applies the query to the incident database, which stores incidents created by the event correlation system, and event information used to create those incidents. The specific components of an event that are used to create an incident, and thus stored in the incident database, are set by the correlation rule.
Note: We recommend using this field for information about the query structure. For example, it could contain an explanation of why the query contains certain fields and function.
The custom Tag appears, already selected, in the Tags shuttle control.
Note: If you delete one of the custom nested tags, all the custom tags in which it is nested are also deleted, including the parent tag. If you nest a custom tag inside a subscription tag, and then delete it, only the custom tags are deleted.
When you complete the process, the new tags appear in the list, with the nested custom tags visible when you expand the parent tag.
If you click Save and Close, the new query appears in the Query List, otherwise the query design step you choose appears.
To create a query, write a SQL statement that retrieves the event information you want from the event log store. The query design wizard helps automate this process.
To create a query SQL statement
Lets you enter a different name for the column, when it is displayed in Table or Event Viewer format. If you enter no Display Name, the native field name is used as the column name, "event_count" for example.
Lets you apply one of the following SQL functions to the column values:
Sets the query display to show the selected columns grouped by the selected attribute. For example, you can set the query to group events by source name. You can control the order in which it is applied to various columns. If the first column values are identical, the second are applied. For example, you can group multiple events from the same source by username.
Controls the order in which the selected value is sorted. You can control the order in which it is applied to various columns. If the first column values are identical, the second are applied.
Sets the column values to display in descending order (highest to lowest value) rather than the default ascending order.
Controls whether the row is displayed in a table or Event Viewer if it contains no value. Selecting the Not Null check box removes the row from the query result if it contains no displayable value.
Controls whether the column is visible in a table or Event Viewer format. You can use this setting to make the column data available in the details view without showing it in the display itself.
Note: If you select a Function except TRIM, TOLOWER, TOUPPER or a Group Order setting for a column, you must select the same setting for other columns too. Otherwise, CA Enterprise Log Manager displays error messages.
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 |