allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.12k stars 1.1k forks source link

How do you delete stored goaccess data tables / logs #2137

Closed BobaPearl closed 3 years ago

BobaPearl commented 3 years ago

I'm using GoAccess for a weird edge case, I use this to track how many times images on my webpage get static requests, this is because I have a webcomic, and I host it on my site, and then hotlink the images themselves on multiple forum boards. I want to see how many people are viewing the image across sites. I know I can't filter out bots and spiders, but it's the best I got right now.

I delete everything in the log, and start over from the new update, so I can see how many went back and read based on the new stuff, and how many requests are being done per update.

The problem I'm having is that GoAccess keeps internal records of those logs, and adds the new log information to the report. How do I stop it from doing that?

0bi-w6n-K3nobi commented 3 years ago

Hi @BobaPearl

GoAccess use memory for storage of records. I think do you need restart [i.e. stop and start] for clear previous info.

The only automatic cleanup feature it has is the --keep-last option. See more in the man page here.

allinurl commented 3 years ago

Also, are you using --persist and --restore. If you are, then please don't use them as they would keep restoring from disk whatever data was last parsed.

allinurl commented 3 years ago

Any update on this? Thanks

BobaPearl commented 3 years ago

I can't start and stop my server, as I'm using shared hosting to host my website, or at least the commands have been changed. I ended up purchasing a different access.log visualization program, which has less features, but was able to do what I wanted through some heavy use of filtering.