Apache HTTP Server

Download 113
Last updated Dec 9, 2024

Install Guide

When you first run the app, the dashboard is empty with no data. To proceed, you must configure a logger .

Set Up SSH Connections

Navigate to the Connect Profiles menu under Settings and create an SSH connection profile.

SSH profile

Locate your SSH public key and the button labeled How to set the public key. Click How to set the public key for detailed instructions on configuring SSH key-based authentication on the web server. Follow the example commands below:

[test@araqne ~]$ mkdir .ssh
[test@araqne ~]$ chmod 700 .ssh
[test@araqne ~]$ cd .ssh
[test@araqne .ssh]$ echo ssh-rsa AAAAB3Nz***************************************GgOUCiVx9FqAVQ== >> authorized_keys
[test@araqne .ssh]$ chmod 644 authorized_keys

After adding the logpresso server key and creating the SSH profile in the web server terminal, test the connection with the query as shown below.

sftp PROFILE_NAME ls .

If a file list is displayed, the connection to the SSH server is successful.

Get Permissions to Access Log Files

The Apache web server typically creates log files under the path /var/log/httpd. Check the owner and group of the directory and log files, and add the Logpresso account to the Apache web server group to grant read permissions

If the log file content is displayed, for example, as shown below, file permissions are correctly set.

sftp PROFILE_NAME cat /var/log/httpd/PATH/TO/access_log

Ensure the log file uses the combined log format. To verify, check the apache_httpd_combined parser in the Parsers menu under Settings.

List of parsers

Set Up Connect Profile

Enter the same SSH profile name used earlier; Specify the rotation file path identified during the setup.

Apaches web server connect profile settings

Setup is now complete. Check the dashboard to see the incoming data.