GoAccess lets you monitor how many hits your server is handling

How to install Microsoft Teams in Linux

The Microsoft Teams client is the first Microsoft 365 app available for Linux desktops. This software provides support for chat, video meeting, calling and Office 365 documents on a single platform. In this post, we will learn about how to install Microsoft Teams on Linux.

XnConvert: Best Batch Image Converter for Linux Windows & Mac

XnConvert is a cross platform batch image processing software with which we can not only change the format of multiple images in one click but also perform watermarking, special effects, border, image adjustment etc. in a one click. Available for Windows, Mac and Linux.

How to do voice typing in Google Docs and WordPress

Gone are the days when typing long documents either required the help of a typist or learning typing itself. Because now it is possible to type by speaking due to the development of artificial intelligence. In this post we will learn about various web based tools for Voice Typing.
GoAccess lets you monitor how many hits your server is handling 6
Ankur Guptahttps://antarjaal.in
Web developer by profession, Over 10 years experience of building websites and web applications. Currently working on Epaper CMS Cloud (Software As Service based product). Special interest in computer and technology. After writing on the blogger platform for years, started his own tech portal Antarjaal.In.

The amount of traffic your server is receiving is an important metric for any sysadmin to watch. There are software available that make it easy to read compiled graphs using your web server’s access log. One such software is GoAccess. We will learn about GoAccess in this article.

READ  How to install Custom Themes and Icons in Ubuntu Linux

Use your log files

Whenever someone accesses your web server, a new line entry is created in your web server’s access log. Typically, the client’s IP address and the request they made are logged, as well as the response code, what date and time it was accessed, and other information about the request.

Reading log files is a difficult task, but there are software available that can monitor server health using log files. GoAccess is a popular open-source tool for this task. It can run in a terminal, and displays useful statistics based on your log entries. It can track the total number of visits per day, and can also tell which pages are receiving the most traffic.

READ  5 things to consider before the upgrading RAM

GoAccess also provides a web interface, this interface provides much more detailed information. If you access it from web interface, it will show real-time graphs tracking every single visit. From web interface, visitors with the same IP, date and agent can be grouped into unique visitors.

GoAccess is free and open source software. But it is designed for a single server. If you have more than one server, you will have to run more than one instance of GoAcccess. Or you can also use Apache Top or Nginx Status Module. If you want to monitor the CPU and memory consumption of your server, then you should use Monit.

Installing GoAccess

Go access is extremely easy to install. You can install it through your package manager. In Ubuntu and Debian-based distributions it can be installed by using the following command:

 apt-get install goaccess 

Now you have to locate your server’s access log files. They are usually found within the / var / log folder. Apache’s file /var/log/apache2/access.log and nginx’s log file can be /var/log/nginx/access.log here.

READ  Get Linux Commands Cheat sheet using TLDR
READ  Create Linux Desktop Apps using PHP Desktop

Now give this command on the terminal:

 goaccess /var/log/nginx/access.log 
 GoAccess Log File Selection

Now you will be asked the format of the log file. You choose the appropriate format in it. Common Log Format usually works for both. After this, you will see a report on all the hits coming to your server.

GoAccess Statistics Report

If you want to see this report on the web interface, order as follows:

 goaccess /var/log/nginx/access.log -o /var/www/html/report.html --log-format = COMMON --real-time -html 

The report.html in the above command should be located in a folder that you can access from the browser via http request. But for security purpose it must be protected by Basic Authentication.

If you want to get more information about the traffic of your websites, then I would suggest that you should use an analytics tool. Like Google Analytics or Open Source Matomo Analytics .

Google Analtytics Report

How to install Microsoft Teams in Linux

The Microsoft Teams client is the first Microsoft 365 app available for Linux desktops. This software provides support for chat, video meeting, calling and Office 365 documents on a single platform. In this post, we will learn about how to install Microsoft Teams on Linux.

More Articles Like This