Persist Processed Log Data to File

Q

How to Persist Processed Log Data to File?

✍: FYIcenter.com

A

If you want to Persist Processed Log Data to File, you can follow these steps:

1. Create a new directory to store processed log data:

fyicenter$ sudo mkdir /var/log/goaccess 

2. Run "goaccess" with "--persist" and "--db-path" options for the first log file:

fyicenter$ sudo goaccess access_log -o report.html --persist --db-path=/var/log/goaccess

3. Verify processed log data files:

fyicenter$ ls -l /var/log/goaccess
-rw-r--r--. 1 root root   33 Dec  8 22:32 I32_DATES.db
-rw-r--r--. 1 root root 4152 Dec  8 22:32 IGLP_LAST_PARSE.db
-rw-r--r--. 1 root root   54 Dec  8 22:32 IGSL_BROWSERS_MTRC_AGENTS.db
-rw-r--r--. 1 root root   54 Dec  8 22:32 IGSL_GEO_LOCATION_MTRC_AGENTS.db
-rw-r--r--. 1 root root   54 Dec  8 22:32 IGSL_HOSTS_MTRC_AGENTS.db
-rw-r--r--. 1 root root   54 Dec  8 22:32 IGSL_NOT_FOUND_MTRC_AGENTS.db
-rw-r--r--. 1 root root   54 Dec  8 22:32 IGSL_OS_MTRC_AGENTS.db
-rw-r--r--. 1 root root   54 Dec  8 22:32 IGSL_REFERRING_SITES_MTRC_AGENTS.db
-rw-r--r--. 1 root root   54 Dec  8 22:32 IGSL_REQUESTS_MTRC_AGENTS.db
...

Now you can restore processed data and combine it with new log files as shown in the next tutorial.

 

⇒ Restore Processed Log Data from File

⇐ Generate JSON Report from Apache Log File

⇑ Customizing GoAccess

⇑⇑ GoAccess - Frequently Asked Questions

2022-12-23, ∼1186🔥, 0💬