IBM HTTP Server (IHS) is a web server based on the Apache Software Foundation’s HTTP Server that runs on AIX, HP-UX, Linux, Solaris, JADE, Windows NT, IBM i and z/OS.

Integration of IBM HTTP Webserver with DNIF Adapter

To forward IBM HTTP Webserver logs to the DNIF Adapter make the following configuration

Log in to the server that hosts IBM HTTP server, as the root user.

Install syslog package, if you haven’t installed it

Edit the configuration file httpd.conf:

vim /etc/httpd/conf/httpd.conf

Add the following information in the http configuration file to specify a custom path for the syslog events:

####For error logs
ErrorLog logs/error_log
ErrorLog syslog:local1

####For access logs
CustomLog logs/access_log combined
CustomLog "|/usr/bin/logger -t httpd -p" combined

Save the Apache configuration file.

Edit the syslog configuration file:

vim /etc/rsyslog.conf

Add the following information to syslog configuration file:

##For System logs
*.*		@DNIF-Adapter-IP:514

##For IBM HTTP logs
local1.*	@DNIF-Adapter-IP:514
local2.*	@DNIF-Adapter-IP:514

Save the syslog configuration file.

Restart the rsyslog service.

 /etc/init.d/rsyslog restart

Restart IBM HTTP Server to complete the syslog configuration.

IBM HTTP Server logs are now being streamed to the DNIF-ADAPTER.