Difference between revisions of "AWStats"

Jump to navigation Jump to search
1,135 bytes added ,  15:16, 12 October 2012
Added "Add New Robots to Detection"
m (Added Applications category)
(Added "Add New Robots to Detection")
Line 78: Line 78:
** Updates can only be added in chronological order, therefore you may need to delete the data file for a particular month, and rebuild it entirely.
** Updates can only be added in chronological order, therefore you may need to delete the data file for a particular month, and rebuild it entirely.
Scheduled updates are configured in <code> /etc/cron.d/awstats </code>
Scheduled updates are configured in <code> /etc/cron.d/awstats </code>
== Add New Robots to Detection ==
Locate the <code>robots.pm</code>, likely to be in one of the following locations, create a backup and then edit...
Robots need to be added to two arrays, <code>RobotsSearchIDOrder_listx</code> and <code>RobotsHashIDLib</code>.  <code>RobotsSearchIDOrder_listx</code> is just an index, so if adding a number of new robots, create your listings for <code>RobotsHashIDLib</code>, then create a copy and delete the extraneous bits for <code>RobotsSearchIDOrder_listx</code>.
Add new entries to the end of the arrays, just above the catch-alls.
So for a robot user agent string such as...
(compatible; proximic; +http://www.proximic.com/info/spider.php)
Create a entry such as this for <code>RobotsHashIDLib</code>
'proximic','<a href="http://www.proximic.com/info/spider.php" title="Bot home page [new window]" target="_blank">Proximic</a>',
and an entry such as this for code>RobotsSearchIDOrder_listx</code>
'proximic',
Note that robots will only be detected on new stats runs, so to update historical stats, delete the history files and recreate from archived logs (if you have available).


[[Category:Monitoring]]
[[Category:Monitoring]]

Navigation menu