Schedule Storing of a Log File

To schedule ColdFusion to store a log file for future reference, follow these steps:

 

  1. In the ColdFusion Administrator, click Tools>Log Files. The Log Files page appears.  

  2. Click the Schedule store log file control for the log file you want to schedule for backup. The Add/Edit Scheduled Task page appears.

  3. In the Add/Edit Schedule Task page, specify the following information:

 

Option

Description

Default

Task Name

ColdFusion assigns the log file name as the Task Name.  

 

Example: If you were scheduling to backup the application log, archive application.log would appear in the Task Name text box.

 

You can keep the task name assigned by ColdFusion or change it.

None

Duration

Enter the Start and End dates for the task.

The end date is optional. If you want this task to execute continuously, leave the end date field blank.

Start date: present date

End date: blank

 

Schedule to Run

Select how often you want to schedule this task to run:

  • One-time. Schedules to  run the task once on the Start Date during the time period specified. Specify the date and time. The task must be set at least 15 minutes in the future in order for the task to execute successfully.

  • Recurring. Schedules the task to run daily, weekly, or monthly during the time specified.

  • Daily. Schedules the task to repeat  every day during a specific time period. Specify the daily start and end times. The duration of the scheduling of this task is governed by Start and End Date.

Recurring: daily at 1:00 a.m.

 

Operation

Enter an HTTP port number between 1 and 65535.

None

URL

ColdFusion automatically assigns the URL log file path. You should not change the URL unless you changed the location of the log file.

None

User Name

Password

 

(optional)

Specify a user name and password only if the log file is located in a secure location.

None

Request TimeOut

 

(optional)

Specify a timeout setting. A  timeout setting helps avoid requests that stall because an overloaded web server, network problem or a page that takes too long to execute.

None

Proxy Server

Proxy Port

 

(optional)

If you need to route this request through a proxy server, enter the URL and Port number of the proxy server.

None

Publish

Path

File

 

(optional)

If you elect to publish an output file of this task, you must:

  1. Select the Publish option.

  2. Identify the full path in the Path field of where you want to store this file.

  3. Specify a filename for the output file.

None

Resolve URL

 

(optional)

Select the Resolve URL option to replace relative URLs  in links returned in the result page with absolute URLs.

Option: disabled.

 

  1. To apply and save changes, click Submit Changes.

 

Related topics