<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>goaccess Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/goaccess/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 05 Apr 2021 16:38:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install GoAccess on Ubuntu 20.04 / Debian 10?</title>
		<link>https://www.osradar.com/install-goaccess-ubuntu-debian/</link>
					<comments>https://www.osradar.com/install-goaccess-ubuntu-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 08 Apr 2021 02:57:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[goaccess]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24741</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install GoAccess on Ubuntu 20.04 / Debian 10. This way you will be able to monitor your web server without problems. What is it? According to the project&#8217;s website, GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-goaccess-ubuntu-debian/">Install GoAccess on Ubuntu 20.04 / Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><strong>Hello, friends. In this post, you will learn how to install GoAccess on Ubuntu 20.04 / Debian 10. This way you will be able to monitor your web server without problems.</strong></p>



<h2>What is it?</h2>



<p>According to the <a href="https://goaccess.io/" target="_blank" rel="noreferrer noopener">project&#8217;s website</a>,</p>



<blockquote class="wp-block-quote"><p>GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.</p></blockquote>



<p>Also, &#8220;It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly&#8221;.</p>



<p>Some features are:</p>



<ul><li><strong>Fast</strong>, <strong>real-time</strong>, millisecond/second updates, written in C</li><li><strong>Only</strong> ncurses as a <strong>dependency</strong></li><li><strong>Nearly all</strong> web log <strong>formats</strong> (Apache, Nginx, Amazon S3, Elastic Load Balancing, CloudFront, etc)</li><li>Simply set the log format and run it against your log</li><li>Beautiful terminal and bootstrap dashboards (Tailor GoAccess to suit your own color taste/schemes)</li><li>and of course, <a href="http://valgrind.org/">Valgrind</a> tested.</li></ul>



<h2>Installing GoAccess on Ubuntu 20.04 / Debian 10</h2>



<p>GoAccess is available in the official Ubuntu repositories, so the installation is quite simple but it is convenient to have the latest version available. So, you have to add the GoAccess repository.</p>



<p>To do this, open a terminal and execute the following commands:</p>



<pre class="wp-block-preformatted">echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/goaccess.list<br>wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add -</pre>



<p>Now refresh the APT cache:</p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<p>And performs the installation running:</p>



<pre class="wp-block-preformatted">sudo apt install goaccess
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   libmaxminddb0 libncursesw5 libtinfo5
 Suggested packages:
   mmdb-bin
 Recommended packages:
   libgpm2
 The following NEW packages will be installed:
   goaccess libmaxminddb0 libncursesw5 libtinfo5
 0 upgraded, 4 newly installed, 0 to remove and 28 not upgraded.
 Need to get 833 kB of archives.
 After this operation, 2,025 kB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>If you want, you ca check the installed version:</p>



<pre class="wp-block-preformatted">goaccess --version
GoAccess - 1.4.6.
 For more details visit: https://goaccess.io/
 Copyright (C) 2009-2020 by Gerardo Orellana
And so you can get GoAccess, now let's use it a little.</pre>



<h2>Using GoAccess on Ubuntu 20.04 / Debian 10</h2>



<p>The first thing you can do is check the help that the terminal gives us, for that you can run:</p>



<pre class="wp-block-preformatted">goaccess --help</pre>



<p>On the other hand, the most basic way to use goaccess is simply by specifying a log file.</p>



<pre class="wp-block-preformatted">goaccess /var/log/apache2/access.log</pre>



<p>Or you can select the log of your <a href="https://www.osradar.com/configure-virtual-hosts-lighttpd/" target="_blank" rel="noreferrer noopener">Virtualhost</a>.</p>



<p>There you will be shown a screen in the terminal where you can choose the log output format.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="573" height="386" src="https://www.osradar.com/wp-content/uploads/2020/10/1-14.png" alt="1.- Using GoAccess on Ubuntu 20.04 / Debian 10" class="wp-image-24807" srcset="https://www.osradar.com/wp-content/uploads/2020/10/1-14.png 573w, https://www.osradar.com/wp-content/uploads/2020/10/1-14-300x202.png 300w" sizes="(max-width: 573px) 100vw, 573px" /><figcaption>1.- Using GoAccess on Ubuntu 20.04 / Debian 10</figcaption></figure>



<p>In my case, I have chosen the third option (CLF).</p>



<p>And immediately it will start the analysis.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2020/10/2-14-1024x536.png" alt="2.- Log view on GoAccess" class="wp-image-24808" srcset="https://www.osradar.com/wp-content/uploads/2020/10/2-14-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/2-14-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/2-14-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/2-14-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/2-14-1068x559.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/2-14.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Log view on GoAccess</figcaption></figure>



<p><strong>Note: I am working with a home test server. Therefore, there is not so much activity in the log.</strong></p>



<p>But you can also specify a log format to make it work with, for example, squid. Although we recommend that you read the <a href="https://goaccess.io/man" target="_blank" rel="noreferrer noopener">official documentation</a></p>



<p>A very interesting option is to display it directly on your web browser. I think this is the best possible option.</p>



<pre class="wp-block-preformatted">sudo goaccess /var/log/apache2/access.log --log-format=COMBINED -a -o /var/www/html/file.html</pre>



<p>And <strong>this will generate a file that you can open from the browser</strong>. Remember to modify the name of the output file.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/10/3-12-1024x506.png" alt="3.- GoAccess html log view" class="wp-image-24809" srcset="https://www.osradar.com/wp-content/uploads/2020/10/3-12-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/3-12-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/3-12-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/3-12-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/3-12-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/3-12.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- GoAccess html log view</figcaption></figure>



<p>And this is the basic use of GoAccess as we see is a basic but very useful tool.</p>



<h2>Conclusion</h2>



<p>Having a program that can analyze logs graphically and interactively is an advantage for all of us who work on Linux. That&#8217;s why today we wanted to show you GoAccess.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a> and our <a href="https://www.facebook.com/osradar" target="_blank" rel="noreferrer noopener">Facebook page</a>. Also, buy us a coffee 😉</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-goaccess-ubuntu-debian/">Install GoAccess on Ubuntu 20.04 / Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-goaccess-ubuntu-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
