...
- Open the Tasks console (see Tasks), and click the New Task button.
- In the page that opens, select the Collection to Database option, and then click Continue.
The Collection to DatabaseTask page opens. - In Name, type the name of the new task.
- In Description, type a description of the new task; optional.
- In Collected Log, type the name of a log
OR
Click Select log, and in the Select Log to Collect window that opens, select a log. - In Data Filter Query, type a query to filter out events that don't satisfy the above query.
- In Environment Variables, type the environment variables neede d for the program/script to run; optional.
- In Working Directory, type the name of the directory from which the program/script should be run; optional.
- In Output Target File, type the the path to the file where output of the program/script execution is to be written; optional.
- Select the Add Optional Params checkbox to include in the output file the date, account name, host name, and username.
- Open the Schedule tab.
- In Set Frequency, select the frequency of task execution: Never, Daily, Weekly, or Monthly, and then complete the options that appear for your selected frequency.
- Click Save.
The Batch Exection The Collection to Database task is saved.