04-09-2009, 13:44 | #1 |
Absinthe
Join Date: Jan 2007
Location: Chester
Posts: 2,345
|
Ridiculous vB Thread View Counts?
Can anyone help me with a fix... yesterday we had some new threads started that have like 5 replies or something... probably a little more than that actual views but they're displaying as like 3,500 views!?!
I've looked at the 'update counters' stuff and that doesn't seem to have fixed anything. any ideas? |
04-09-2009, 14:25 | #2 |
Rocket Fuel
Join Date: Jul 2006
Posts: 7,826
|
Sure it's not a bot crawling and bumping up the viewcount? If you've got access to the webserver logs grep out the thread ID and see roughly how many times it occurs.
|
04-09-2009, 14:29 | #3 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
Pipe it through wc -l
If it's happening a lot it'd be worth disabling plugins to see if that shuts it up. Any file hacks?
__________________
apt-get moo |
04-09-2009, 15:20 | #4 |
Absinthe
Join Date: Jan 2007
Location: Chester
Posts: 2,345
|
Its in a hidden forum, only about 7 users have access and the only thing I've got that might be able to access it is google analytics I think. although I got a robots file from google which basically allows all; Code:
User-agent: * Allow: / and what logs should I be looking at? the vB logs or actual server logs? Last edited by Joe 90; 04-09-2009 at 15:22. |
04-09-2009, 15:25 | #5 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
Robots will only see what guests see.
Look through the server logs. If you have shell access to the server, running Code:
grep <threadid> access.log Code:
grep <threadid> access.log |wc -l
__________________
apt-get moo |
04-09-2009, 16:07 | #6 |
Absinthe
Join Date: Jan 2007
Location: Chester
Posts: 2,345
|
cheers daz.
ran a search across all log files including the error logs and found 427 lines. Is there some way of archiving these results to download? my command line knowledge spreads about as far as navigating directories and using the help file! |
04-09-2009, 16:10 | #7 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
Code:
grep <threadid> access.log > threadaccess.log
__________________
apt-get moo |
04-09-2009, 16:12 | #8 |
Absinthe
Join Date: Jan 2007
Location: Chester
Posts: 2,345
|
awesome, thanks.
I really need to learn how to use this stuff properly! what should i be lookin for in these logs btw!!? Last edited by Joe 90; 04-09-2009 at 16:19. |
05-09-2009, 02:01 | #9 |
Preparing more tumbleweed
Join Date: Jun 2006
Location: Hawaii
Posts: 6,038
|
Depends on how the server is set up to log. Typical format would be something like
IP, date, request, result code, size, source page, browser details. try using Code:
head logfile.log Code:
cat logfile.log | awk {'print $1'} | sort -n |uniq -c | sort -n | tail From there you could do Code:
grep "ip.ad.dre.ss" logfile.log | less The final column, the browser details, will reveal details like if it's Google spider that's crawling your site or similar. I would anticipate if it was it would appear a fair number of times in your logs.
__________________
Mal: Define "interesting"? Wash: "Oh, God, oh, God, we're all gonna die"? Last edited by Garp; 05-09-2009 at 02:06. |
05-09-2009, 14:43 | #10 |
Absinthe
Join Date: Jan 2007
Location: Chester
Posts: 2,345
|
well the heres a random line from the search of the logs;
Code:
ex090903.log:forum.shuwarriors.net: [03/Sep/2009:22:59:45 +0100] 91.107.220.54 - - "GET /clear.gif HTTP/1.1" 200 43 "http://forum.shuwarriors.net/showthread.php?t=1784" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2" |
Thread Tools | |
Display Modes | |
|
|