Use this command to create saved searches.
To understand the syntax and examples, see:
Note
Prefix this command with the following, as appropriate:
create -d <hostname> -u <username> [-v] [-s] -w <password> -p <portNumber> -e savedsearch
–a queryName=<Saved Search Name>, queryString=<Query String>,
description=<Saved Search Description>, startTime=<Search Start Time>,
endTime=<Search End Time>, absoluteTime=<Boolean value>,
relativeMinutes=<Relative time>, share=<Boolean value>
The following table describes the parameters used in the syntax:
Parameter | Description |
---|---|
-a | Attributes of the entity that you want to create. This parameter must be in the format This option must be in the format You can provide the following attribute to get details about a saved search:
|
-d | Host name of the Console Server |
-e | The entity that you want to create. Enter |
-p | Port number of the Console Server |
-u | User name to use to connect with the Console Server |
-w | Password corresponding to the user name to use to connect with the Console Server |
-v | (Optional) Version of the IT Data Analytics product |
-s | (Optional) Indicates an HTTPS connection |
The following example provides the input for creating a saved search:
create -d localhost -u admin -w admin -p 9797 -e savedsearch -a queryName="Star Query",queryString="*", description="Query with *",startTime=1376654400000,endTime=1377268200000, absoluteTime=false, relativeMinutes=10080, share=false