• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

goaccess Command Examples in Linux

by Deepika

GoAccess is an open-source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly. GoAccess parses the specified web log file and outputs the data to the X terminal.

It can analyze web server logs in various formats like Apache, Nginx, Amazon S3 and CloudFront, JSON, and more. It provides a variety of statistics, including the number of unique visitors, requests per second, most popular pages, and more. It also has the capability to output the statistics to HTML, JSON, and CSV formats.

GoAccess is designed to be lightweight and highly efficient, making it an ideal tool for monitoring web server traffic in real-time. It allows for easy navigation and allows for drilling down into specific metrics and data. It’s a powerful and flexible tool for web server log analysis, and it’s a popular choice among system administrators and developers.

goaccess Command Examples

1. Analyze one or more log files in interactive mode:

# goaccess path/to/logfile1 path/to/file2 ...

2. Use a specific log-format (or pre-defined formats like “combined”):

# goaccess path/to/logfile --log-format=format

3. Analyze a log from stdin:

# tail -f path/to/logfile | goaccess -

4. Analyze a log and write it to an HTML file in real-time:

# goaccess path/to/logfile --output path/to/file.html --real-time-html

Filed Under: Linux

Some more articles you might also be interested in …

  1. Understanding rsyslog Templates
  2. atool Command Examples in Linux
  3. guix package Command Examples in Linux
  4. chown: command not found
  5. How to Extend allowed number of loopback devices
  6. Supported and Recommended File Systems on Linux
  7. 18 Practical tcpdump Command Examples – A Network Sniffer Tool Primer
  8. Beginners guide to Kernel Module Configuration in Linux
  9. Secure Shell: Chrome Web Browser ssh client
  10. physlock Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright