Software: Apache. PHP/8.3.27 uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364) Safe-mode: OFF (not secure) /usr/share/doc/analog/how-to/startwin/ drwxr-xr-x | |
| Viewing file: Select action/file-type: Analog HOW-TOGetting started under Windows
This analog How-To written by Simon Handfield
Contents
PurposeThis How-To provides some basic information on how to get up and running with analog on Microsoft Windows. The How-To covers:
Once you are comfortable with the topics covered in this How-To, I encourage you to read more from the analog documentation to make sure you are getting the most out of this very popular log analysis tool. DownloadingDownload the latest version of analog from your nearest mirror site. The latest version at the time this How-To was written was 5.24.
You can download a pre-compiled executable if you have an Intel-compatible chip and Windows 95/NT or later...
Select the link from your nearest analog mirror site.
Save the file to your computer. InstallingIntroductionAnalog for Windows is distributed with all files organised in a zip archive, and so no installation is necessary. What you do need to do is extract all the files from the archive into an appropriate location on your PC. The zip archive contains directory information for each file, so inside the directory to which you extract analog it will create its own install directory which is usually: analog [version] where [version] is the version of analog you've downloaded (in my case 5.24)
The archive will also create subdirectories for you in this new directory which will contain documentation, example configurations, images and language files.
I'd recommend extracting the archive to your usual program files directory, which is usually C:\Program Files\analog 5.24
Step by step
1. Open the downloaded zip archive using a decompression utility.
2. Select your decompression utility's Extract action.
3. Make sure the option to Use folder names is on.
4. Select the directory where you want to put analog (usually C:\Program Files.)
5. Start the extraction.
You should now have a directory (
At this point, without doing any more, you actually have enough to run analog over the sample log file supplied ( Testing installation
Testing that the installation succeeded is as simple as double-clicking the analog executable,
When you double-click
While analog probably ran successfully, you can't tell by watching the command
window. Instead, analog writes any errors to the file
You can check your analog directory and you should find a report file,
Now you have confirmed you can run analog successfully, you can go on and customise your configuration to analyse your own log files. Customising your configurationIntroductionanalog is a very powerful log analyser. This is great if you want to get very specific information from your log files. With power however also comes some complexity in configuring analog to give you what you want. If you are just starting out, you are better to make small changes to your configuration, slowly working towards the reports that you want than leaping in and trying to create your own configuration file from scratch.
The sample configuration that comes with analog ( Let's start by backing up the original config file so we can retrieve it later if we really break things badly.
Now we can start editing the original config file, Running analog from the DOS command prompt
Once you start creating your own configuration file, you're likely to
encounter some errors. Analog normally writes these to the file
To read the errors, we'll still need to get that analog command window to wait for us to read its output instead of disappearing as soon as analog has finished.
To do this we'll open a command prompt window ourselves and call
Click the Start button and click Run...
Type cmd (WinNT/2000/XP) or command (Win9x/Me) and click OK.
analog should run and exit without writing anything to your screen, and drop you back at your command prompt We have just performed the same process as we did by double-clicking the analog executable, but this way we get to see if analog encounters any errors as it runs. This will come in very handy when you start to create your own configuration file. Changing the report locationProbably the first things you want to do are to change where the reports are written and to analyse your own log file.
Let's look at the line in OUTFILE Report.html
This tells analog to write its main report file to If we run analog on a regular basis, we're going to overwrite our previous report each time we do so. Also this mixes our report files up with our program files and gets a bit messy. Let's create a new directory where we'll put all our analog reports, and make the report name dynamic so we can run analog without overwriting previous reports.
Running analog after this change causes it to output its report files to The image files that display graphs are generated dynamically by analog when it runs and these are stored in the same directory as the report file by default. However, they will not use the date as pert of their filename so will be overwritten with every new report run. All the html files for different months will point to the same graphs for the latest month. To avoid this I'm going to use another command in my config file to save graphs with date-based file names in a new subdirectory to keep things tidy:
The Now your reports will be written to the directory of your choice and won't overwrite each other each month when you analyse your latest log. Using your own log fileThe other important customisation you will want to make is to tell analog where you keep your log file so you don't have to copy or move it to the analog installation directory. analog's default config file includes a pointer to a log file: LOGFILE logfile.log
Because there is no drive letter or path information, just a file name, analog will look for this file in the same directory as the analog executable (
Your log files are more likely to be in
My log file is stored in
To have analog process this log file, I'll change the LOGFILE d:\log\apache\access.log
I have no spaces in the path to my file, so I don't need to use quotes around it, but if you have spaces in your path you must include the entire path in quotes: LOGFILE "c:\my logs\w3svc1\ex0203.log"
Running analog now should cause the program to run, analyse your chosen log file and output your report to your chosen destination. There are other changes you will want to make to the configuration file to generate the report you want. You will notice that the images do not display correctly now.
The analog icon and the red bar icons in the individual reports are stored in the
You will also want to change the title of your report from the example Work through the example configuration, reading the comprehensive analog documentation to determine what each line does and what other commands you might choose to use.
Once you have worked through the simple example configuration, examine some of the others in the Simon Handfield |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0823 ]-- |