摘要 |
An improved method for operating a computer system that receives URL messages, each message having a path portion and a query portion. Each message conforms to a set of syntax rules. Copies of the received messages are stored in log files having a predetermined format. The computer system includes a program for counting the number of times messages having a unique path portion are present in one of the log files. In the method of the present invention, a rule is provided that includes data specifying a path and a query parameter. Each URL message received by the computer system is examined to determine if the path portion of that URL is the same as the path specified in the rule. If the path portion matches the specified path, a re-written URL message is generated by moving the query parameter specified in the rule from the query portion of that URL to the path portion of the URL. The re-written URL message is then stored in a first one of the log files. The counting program is then run with this first log file as input. In one embodiment of the invention, the URL message in an existing log file are examined and messages in which the path matches the rule are re-written to create a log file that is then processed by the counting program.
|