Xinet provides Web Access logs so that you can monitor how Xinet is being used over the Internet. The Logging, Web Access page presents an easy way to look at what’s happening. You can also parse the accesslog file on the server with other programs or scripts, for example, if you charge on a per-usage basis, to automatically generate invoices. Xinet TechNote 102 available at www.northplains.com/xinet provides more information about this.
1. Click on the Logging, Web Access tab. The following page will appear:
2. Using the Access log for pop-up list, select the user whose usage you want to look up. Note, that you can also choose to view system-wide Xinet activities by selecting All Users.
3. Establish the period of time over which you would like to gather usage information by setting the Start date and End date.
4. Establish the level of detail in the report you’ll see by selecting one of the Log type options. You may choose between:
5. The Logging, Settings, Web Access tab (Web Access Log rotation and archive schedule) allows you to determining the rotation schedule and length of time archives will be kept for this log.If you want more information about a particular file, you may click on the file name in the table and open the file’s information page. Click the Cancel button to return to the log file.Finally, by scrolling to the bottom of the page, you’ll find a Usage summary where total amounts from the detailed list above are given.Unix /var/adm/webnative/accesslogSome of the information there gets interpreted for its presentation in the xinet ADMINISTRATION view, so what you see in the file itself will look a little different. The format of the accesslog file has been designed to facilitate easy parsing by C programs, Perl programs, and Unix shell scripts. In addition, you can easily import the data from it into Excel.The general idea is that you should be able to easily determine which user has downloaded or uploaded files and be able to charge them based on a variety of criteria: the size of the files, whether they accessed high-resolution or low-resolution files, the number of actions, etc.New entries are always added to the bottom of the accesslog file. The format of each entry is standardized as follows:
• field 1: a numeric value of 1, 2,3 or 4.If this field is a 1, then the format of the entry is the first format used in Xinet (for example. the oldest format we have used.) If it is 2, the format is the second type used for the file, etc. The current format is represented by a 4 in this field.
• field 2: the second field indicates the time of the activity.Inside the file itself (but not in the xinet Administration view) time is given in Unix time, meaning seconds since January 1st, 1970. The advantage of this format is that it can be converted to local time using whatever format is appropriate. For instance, the date can be converted to European standards (with the day first and month second) or to non-English spellings of months. It is also simpler to store the date in one field rather than three.If you were parsing the file using a C program, you might use ctime to convert the seconds into the local time. See the Unix man page for more details about ctime(3M).' ImportAccessLog Macro'Pop up dialogue to select file
myfile = Application.GetOpenFilename("TEXT")
Workbooks.OpenText _
FileName:=myfile, _
Origin:=xlMacintosh, _
StartRow:=1, _
DataType:=xlDelimited, _
TextQualifier:= _
xlDoubleQuote, _
Tab:=True, _
FieldInfo:=Array(1, 1)
' Insert a new column for the new dates
Columns("C:C").Insert Shift:=xlToRight
' Find the last cell in use
Selection.SpecialCells(xlCellTypeLastCell).Select
' Range is set to first through last cells to use in the new column
Range("C1", ActiveCell.Offset(0, -6)).Select
' Set the formula. This value is for the 1904 date system. If the 1900
' date system is in use, change 24107 to 25569.
Selection.Formula = "=PRODUCT(RC[-1],1/86400) + 24107"
' Convert formula to values so the original values can be deleted
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
' Delete the original date column
Columns("B:B").Delete Shift:=xlToLeft
' Set the format for the new date column
Columns("B:B").NumberFormat = "m/d/yy h:mm"
End Sub
• field 3: the Xinet user who did the downloading/uploading/previewing.
• field 4: the IP address of the machine that initiated the activity.
• field 5: the full path of the file in question.
• field 6: the place to which a file has been moved via the Xinet File Manager facility. In most cases, because File Manager hasn’t been used, the field will be marked n/a.
• field 7: the exact action by the user. Each number represents the following action:
Viewing the 72 dpi preview is listed as an action you may want to charge for because these previews are web-ready. In other words, they can be copied by a Xinet user and incorporated as an image onto another Web site.
• field 8: the size of the file on the server; for example. the image in its decompressed state.
• field 9: the size of the image as it is sent over the Internet; for example. the image after it is compressed.