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:
- Windows
- Unix
-
Open a command prompt with Administrator level privileges.
-
Go to the bin directory, which is by default in
C:\Program Files\OpeniT\Core\bin, run the command:Command Syntaxcd <bin_dir>Examplecd C:\Program Files\OpeniT\Core\bin -
Once in the directory, activate the Apache log parsing, run the command:
Command Syntaxopenit_oconfinit -u "process_apachelog.root.scheduler.jobs.process_apachelog.general.active=true" -
To change the scheduling, run the command:
Command Syntaxopenit_oconfinit -u "process_apachelog.root.scheduler.jobs.process_apachelog.scheduling.start-triggers.trigger#1.period=<period>"noteThe 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.
Exampleopenit_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.
-
Go to the bin directory, which is by default in
/opt/openit/bin, run the command:Command Syntaxcd <bin_dir>Examplecd /opt/openit/bin -
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" -
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>"noteThe 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-win.root.scheduler.jobs.process_apachelog.scheduling.start-triggers.trigger#1.when=PT12H"This will set the Apache log parsing to run every 12 hours.