on
dns
technitium
ubuntu
- Get link
- X
- Other Apps
Adiscon LogAnalyzer is a web interface to syslog and other network event data.
It provides easy browsing, analysis of realtime network events and reporting services.
By default, Ubuntu shipped with older version of loganalyzer in their default repository. To get the latest version, have to download and install it manually.
1. Install apache2 web server and mysql support.
sudo apt-get install apache2 php php-gd php-mysql mysql-server
2. Download the latest version of loganalyzer from the official website.
wget https://download.adiscon.com/loganalyzer/loganalyzer-4.1.12.tar.gz
tar -zxvf loganalyzer-4.1.12.tar.gz
3. Create a loganalyzer folder under /var/www to store the source files.
sudo mkdir /var/www/loganalyzer
sudo cp -r loganalyzer-4.1.12/src/* /var/www/loganalyzer
4. Create /etc/apache2/conf-available/loganalyzer.conf to alias http://xxx.xxx.xxx.xxx/loganalyzer to the local loganalyzer source files.
# Define /loganalyzer alias, this is the default
<IfModule mod_alias.c>
Alias /loganalyzer /var/www/loganalyzer
</IfModule>
5. Enable the alias configuration and restart apache2 web service.
sudo a2enconf loganalyzer.conf
sudo systemctl restart apache2
6. Create an empty loganalyzer config.php.
sudo touch /var/www/loganalyzer/config.php
sudo chmod 666 /var/www/loganalyzer/config.php
7. Open http://domain_or_ip/loganalyzer in web browser.
8. To enable UserDB, create a mysql database and enter with the DB credentials.
CREATE DATABASE loganalyzer;
CREATE USER 'loganalyzer'@'localhost' IDENTIFIED BY 'P@ssw0rd';
GRANT ALL PRIVILEGES ON loganalyzer.* TO 'loganalyzer'@'localhost';
FLUSH PRIVILEGES;
11. Login to loganalyzer with credential.
12. With UserDB enable, all loganalyzer's configuration stored under MySQL database.
14. Secure loganalyzer by restrict root access only for config.php and remove install.php file.
sudo chmod 644 /var/www/loganalyzer/config.php
sudo rm /var/www/loganalyzer/install.php
Comments