Skip to main content

Configuring Apache Log Parsing

An Apache Log Parser is a tool designed to read and analyze log files generated by the Apache web server. It processes raw log data—such as hostnames, requests, IP addresses, and timestamps—and converts it into structured, meaningful information.

To configure, follow these instructions:

  1. Open a command prompt with Administrator level privileges.

  2. Go to the bin directory, which is by default in C:\Program Files\OpeniT\Core\bin, run the command:

    Command Syntax
    cd <bin_dir>
    Example
    cd C:\Program Files\OpeniT\Core\bin
  3. Once in the directory, activate the Apache log parsing, run the command:

    Command Syntax
    openit_oconfinit -u "process_apachelog.root.scheduler.jobs.process_apachelog.general.active=true"
  4. To change the scheduling, run the command:

    Command Syntax
    openit_oconfinit -u "process_apachelog.root.scheduler.jobs.process_apachelog.scheduling.start-triggers.trigger#1.period=<period>"
    note

    The default value of <period> is P1D, which means run daily. Change its value to your desired interval based on the ISO-8601 duration format PnDTnHnMn.nS.

    Example
    openit_oconfinit -u "process_apachelog.root.scheduler.jobs.process_apachelog.scheduling.start-triggers.trigger#1.period=PT12H"

    This will set the Apache log parsing to run every 12 hours.