GoAccess: Open Source Real-time Web Log Analyzer and Interactive Viewer

GoAccess: Open Source Real-time Web Log Analyzer and Interactive Viewer


---------------------------------------------------
Connect With Us
---------------------------------------------------
+ Hire Us for a project: https://lawrencesystems.com/hire-us/
+ Technical questions? Ask our community: https://forums.lawrencesystems.com/
+ Official Website: https://www.lawrencesystems.com/
+ GitHub: https://github.com/lawrencesystems/

Support the Channel & Swag
---------------------------------------------------
πŸ’° Patreon: https://www.patreon.com/lawrencesystems
β–ΊπŸ‘• Lawrence Systems Shirts: https://lawrence.video/swag/

Affiliates & Referral Links
---------------------------------------------------
πŸ›’ Amazon Affiliate Store: https://www.amazon.com/shop/lawrencesystemspcpickup
πŸ›’ HostiFi UniFi Cloud Hosting: https://hostifi.net/?via=lawrencesystems
πŸ›’ UniFi Affiliate Link: https://lawrence.video/unifi-affiliate
πŸ›’ TechSupplyDirect (Code LTSERVICES for 10% off): https://www.techsupplydirect.com?aff=2
πŸ›’ Private Internet Access VPN: https://www.privateinternetaccess.com/pages/buy-vpn/LRNSYS




PIA Internet Access Affiliates Link
https://www.privateinternetaccess.com/pages/buy-vpn/LRNSYS
GoAccess: open source real-time web log analyzer and interactive viewer that runs in a terminal
https://goaccess.io/


The Log Format used for the Nginx Discourse Forum:

--log-format='%^[%d:%t %^] "%^" %h "%r" "%u" "%^" %s %b "%R" %D "%^"' \
--date-format=%d/%b/%Y \
--time-format=%T
Closed Caption:

Oh access is an open-source real-time
web log analyzer and interactive viewer
that runs in terminals of UNIX systems
through your browser this is actually
kind of neat so I've used this for a
little while and I was doing a security
video and people had some questions hey
what's that tool you use and I left a
link in that video but I forgot to talk
a little bit about it so it is open
source it runs in a terminal and it's
very full-featured for doing log
analysis now few people asked me already
if it will do log analysis outside of
web server logs a little bit it does
Apache nginx Amazon Elastic load
balancing cloud front and I'm sure if
you jump in their forums there's ways
you can use it to analyze other things
this is you know and izing standard kind
of a log formats it has a lot of
features and it's really tiny really
lightweight matter of fact it doesn't
have any dependencies except for and
curses so when you run this from the
terminal or you want to run an egg put
there's not a lot to load you just load
the go access binaries and run it and
output it and that's it
let me show you real quick how it works
so from the command line it's pretty
simple it's go access minus F and then
location the files this is my discourse
server that runs my forums it's running
a bunch of server and the go access is
looking for the docker container which
is under discourse shared standalone log
buyer blah blah blah right here so we're
gonna go ahead and go access s f2 that
wants to know the log format and this is
where we're gonna get some errors and
let me show you a little bit about this
so the tricky part of echo access can be
that you have to do some formatting on
there so what I've done is
there's more than one way to do this you
can actually create a file in Etsy and
put these parameters in but you have to
look at the log formats and make the
determination of the log formats of how
for example Engine X is outputting these
and then matching this in and I'll leave
this log format I think I can put this
inside of the description of the video
because this was a little bit tricky and
my friend Phil had helped me out with
this because it has not the discourse
server specifically used a weird format
but when I run this on my other standard
Apache servers the default format for
Apache is fine discourse when they spun
this into the docker you used a couple
custom parameters and did things
differently in your log files so you
kind of have to go through the log files
look at it and then create it go access
on there I just wanted to comment on it
so if you want to parse this for other
things it is documented you just have to
get these parameters under and what
those parameters are is
the different header information and log
information of what you want to parse
and what arrangement you wanted to go
into and for example when you can see
some of these are where you see percent
carat there that's just throwing away
certain data because it's not data we
need for the go access then we have the
date format and it's a you know when
you're doing day month year your month
day whichever one those are you have to
get that formatted and then the time
format and then we have it now if you
didn't notice this is just wrapped along
on there four different lines also I
wanted to include two days this has a
daily log rotate so go access just F R
log discourse shared standalone file log
and Gen X access log and then same one
again dot one because that's we have it
set for when the log rotation dot one
will be the next log rotation for each
day that it runs so now we're at eight
tilling go access to take both of these
files assemble them together using this
log format using this date format using
this time format pretty straightforward
exit out and this is the result when you
run it it takes a second to run to parse
all this and then we start getting the
data we're looking for and this is all
in real time so if you're watching the
total requests go up I'm going to do
this bring this over and refresh the
page a couple times for this
and here comes all the Total Request
going up each time I hit this so you're
watching the numbers up in these corners
keep going up so this is all real time
you can look at what exactly is
happening on your server you can watch
the poll information and start
generating all the requests and I'm not
gonna scroll up and down side I'm not
going to show all the IP addresses that
it shows in here but you kind of get the
idea all these are being updated and I
can just be in here and mouse arrow up
and down a little bit we'll get to the
IP address part but you can kind of see
how I can go up and down you can expand
it's got help file in here so all of
this from the command line driven you
can start grabbing and putting the other
statistics which is just really slick
that you can do that and if you notice
at the top here overall analyze requests
January 12th and January 13th so today
and yesterday and then it's telling me
the log sources those two files that we
said right here so there's only a really
handy tool for this and let me show you
what it looks like and report and I have
a report that I sanitized for IP
addresses that I can actually show you
what's going on our discourse server and
some of the stats that I look at
so when you look at the dashboard this
is when you run a report now to run this
report instead of outputting to the
terminal you just add and I'll show you
real quick on the pieces here we go over
here to the man page
examples
when you do the output you actually just
say go access log - Oh report HTML and
when I add that it produced a report dot
HTML static one time file I'm not doing
though if you add real-time it'll
constantly push data to that HTML file
then it has its own little web server it
can set up look kind of like a web
server where you can pull that data
directly from your server I just pulled
the file over if you look at the top
here it's not actually on the server I
copied the file over through SSH and
just viewing it right here but this
gives you an idea hits browser hits I've
already removed the IP addresses from
here one of the things I thought was
interesting when I look at some of the
unique visitors that are hitting my
forums browsers time distribution
operating system there we go
is a lot more a lot of Linux users so
we're only 63% of the people visiting my
forums are using Windows and 63 percent
and 23 percent of you running Linux Mac
5% Android unknown 2% people masking
what they're even doing a Chrome OS
point zero eight percent so not many
Chromebook users at least showing up in
here
unix-like and Darwin so it's like I said
it gives me a lot of interesting stats
this is only for two days worth of stats
that I pulled in here it's definitely a
really slick utility for doing this I I
don't really use the report HTML that
much that they do but I think it's novel
they have mostly I'll pull in the
terminal grab a log file kind of look at
it and I'm not I'm using it in the
forums as an example but it might
security example I have you see I used
it because I look at when wires someone
hitting and what are they doing on one
of my servers whether that be my invoice
ninja server or my screenconnect server
which I use to my security example
someone was just constantly refreshing
your page and pulling a weird amount of
bandwidth but not actually doing any
requests or actions like they are here
where they're actually you know browsing
through or trying to even click on
anything they're just pulling the page
repetitively in a dial service manner
and it's well those things it very
quickly from a terminal you're like yep
that IP is the problem IP and I showed
in that another video but this is a
great utility um it's free obviously
it's open source do what you please with
it a lot of examples and their outputs I
mean there's a lot of flexibility this
has on different things you can do which
is great
I've had it go and play with it and go
ahead and go on their website where they
have an entire real-time demo of what it
looks like you're running the latest
version at especially because this is a
lot more hits than I get so go ahead go
access that IO I'll leave links in
description thanks thanks for watching
if you enjoyed this video go ahead and
hit the thumbs up if you want to see
more content from my channel go ahead
and hit subscribe and the bell icon and
hopefully YouTube will send you a notice
if you're interested in contracting
Lauren systems for any type of IT
services work or consulting work go
ahead and head over to Lauren
systems.com and fill out our contact and
get in touch with us if you would like
to help the channel out in other ways
you can use our affiliate links below
with in the description or we have a
link directly to our Lauren systems page
where we have a list of different
affiliate offers and it's very
appreciated if you use any of those for
signing up any of the services and many
of them offer you discounts if you want
to head over to our forums there'll be a
link in the description for our forums
wherever they may be because we've been
looking at different forum platforms but
they'll always be relevantly linked
right there alright once again thanks
leave some feedback and comments below
on this video if you love
if you hated it I try to reply to
everyone the people who hate and the
people who love them so thank you very
much and see you next time

Video Length: 09:04
Uploaded By: Lawrence Systems
Published: 1/13/2019
View Count: 23,755

Related Software Products
Log Analyzer
Log Analyzer

Published By:
Vovsoft

Description:
Vovsoft Log Analyzer: Open and Search Log Files Too Big for a Text Editor Log Analyzer is a $19 Windows program from Vovsoft that opens very large log and text files, including files over 1 GB and files another program is still writing, and finds every line that contains the value you search for. Version 3.0 also splits Apache access logs and Windows Event Log (.evtx) files into columns and counts the values in any column. The $19 is a one-time...


Related Videos
EventLog Analyzer: How to Extract New Fields for Universal Log Parsing and Indexing (ULPI)
EventLog Analyzer: How to Extract New Fields for Universal Log Parsing and Indexing (ULPI)

Video Length: 04:46
Uploaded By: ManageEngine (11/9/2012)
View Count: 15,929

Copyright Β© 2026, Ivertech. All rights reserved.