This quick-start example walks you through the process of defining a cache group, adding a cache to collect and process log files from a directory, creating a scheduled event to collect and process its log files, and examining the results. By following this example, you will familiarize yourself with the entire process of setting up log file collection.
To define a cache group and process its log files, complete the following steps.
Step
|
Action
|
Defining a cache group
|
|
1 |
From a page in ContentReporter, click the Administration tab.
Result:
The Administration page appears.
|
|
2 |
Click the Admin button.
Result:
The Cache Group tab appears.
|
|
3 |
Click New Group.
Result:
The New Group window appears.
|
|
4 |
Enter a unique name for the group, check either the HTTP Analysis box, the Streaming Analysis box, or both boxes, and then click OK.
Result:
You return to the Cache Group tab, and this cache group appears in the cache group listing.
|
|
5 |
Click Apply to save the changes to the ContentReporter server.
Result:
You have successfully defined the cache group.
|
Adding a cache
|
|
6 |
To add a cache to this cache group, select the cache group in the left-hand panel, and click New Cache.
Result:
The New Cache window appears.
|
|
7 |
Enter a name for the log file source, click the "Collect from imported directory" radio button, and click Browse to browse to the location of the saved log files.
Result:
The Browse for Directory path window appears.
|
|
8 |
Browse to the location of the saved log files, and double-click the folder (or select the folder and click OK).
Result:
You return to the New Cache window, and the location of the saved log files appears in the Import log files directory field.
|
|
9 |
If the log files contain no header, check the check box, and click the radio button for the log file's format.
|
|
10 |
To delete the log files after processing, check the appropriate box.
|
|
11 |
Accept the default number of error lines (200), or enter another number. If you do not want the number of error lines in a log file to stop the ContentReporter server from processing, enter the number 0.
|
|
12 |
When you have entered all the required information, click OK.
Result:
You return to the Cache Groups tab and the cache appears under the cache group in the left-hand panel.
|
|
13 |
Click OK to save the changes to the ContentReporter server.
Result:
You return to the Administration page, and have successfully added a cache to collect and process log files from a directory.
|
Creating a scheduled event
|
|
14 |
To create a Scheduled Event to collect and process the cache group's log files, click the Scheduled Events tab.
Result:
The Scheduled Events page appears.
|
|
15 |
Click the New button.
Result:
The Details tab appears.
|
|
16 |
Enter a name (such as "Cache Group 1 Collection") in the Task Name field.
|
|
17 |
Select "Collect and or import logs" from the Type drop-down selection list.
|
|
18 |
Select the cache group from the Cache Groups drop-down list.
|
|
19 |
Click the Schedule tab.
Result:
The Schedule tab appears.
|
|
20 |
In the Start time field, enter the time it will be two minutes from now, and click OK.
Result:
You return to the Scheduled Events page, and the new Scheduled Event appears on the page. It should be scheduled to run in a two minutes.
|
|
21 |
You can run the collection event immediately, or you can let the Scheduled Event begin in two minutes.
Click Run to immediately start the collection event, or wait for the event to begin in two minutes.
Result:
ContentReporter begins to collect and process this cache group's log files.
|
Examining the results
|
|
22 |
After ContentReporter has collected and processed this cache group's log files, a "Collect and or import logs" event appears for this cache group. The event's name is composed of the cache group's name and a time-stamp.
|
|
23 |
To view more detailed information (such as the event's Start and Finish times) about this log file collection and processing event, check the box adjacent to this event, and click History.
Result:
The Scheduled Events History page appears for this event.
|
|
24 |
To view the names and locations or sources of the imported log files, check the box adjacent to this event, and click Logs.
Result:
The Events History Log Files page for this event appears, and lists the names and locations or sources of the imported log files.
|
|
25 |
After viewing the log files, click Close to return to the Scheduled Events History page for this event, and click Close again.
Result:
You return to the Scheduled Events page, and have successfully examined the history of the scheduled log file collection and processing event.
Note Now that ContentReporter has processed this cache's log files, you can create a report definition based on this cache and generate reports on this cache. To learn more about creating report definitions, see the ContentReporter 3.0 Reporting Guide. |