vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Apache Log Viewer (https://vborg.vbsupport.ru/showthread.php?t=107691)

Trigunflame 02-10-2006 10:00 PM

Apache Log Viewer
 
[CENTER]Apache Log Viewer
View Live Access

Summary:

Simply allows you to view apache log statistics for your desired logfile. Shows IP Addresses, Requests for that IP, and Last Request ordered by Total Requests.

It is compatible with Apaches common, and combined default log formats; other than that its up to you to make the modifications to suit your needs, if you need help just reply back here with the logformat that you use and we can add it as an option for other people.

Also to note, depending on the log file size it may take a good bit of memory to parse the logfile, although there is an option to set how many lines the script should parse before ending.

Note: You probably should set the path to Your domains logfile wherever that may be, as the global apache logfile is probably huge.


Installation:
  1. Download Zip File, Extract..
  2. Open apache_logs.php and edit these 2 settings:
    define('LOG_FILE_NAME', 'c:\apache\logs\common.log');
    define('LOG_FILE_LINES', 5000);
  3. Place apache_logs.php in your admincp folder
  4. Place cpnav_apache_logs.xml in your includes/xml/ folder
  5. Import the product-apache_logs.xml as a product
  6. Click the View Apache Logs link in your admincp navbar.

Changes:
Moved the feof loop outside of the fscanf to prevent termination of non-matching lines.

Zia 02-11-2006 07:07 AM

Yahoooooooooo

1st post 1st post

Zia 02-11-2006 07:10 AM

Now....gonna trying it...

tho dont what it will do.........& what benifit i wll get from it :D

DeMiNe0 02-11-2006 07:23 AM

For the most part a hack like this isn't good if your using shared hosting. Most of the time the shared hosts block access to the apache logs.

Marco van Herwaarden 02-11-2006 07:44 AM

Not if they set things up so that each hosting client has it's own logs.

Trigunflame 02-11-2006 08:46 AM

Quote:

Originally Posted by MarcoH64
Not if they set things up so that each hosting client has it's own logs.

< Nods, most hosts use cpanel which generally use domlogs that contain individual logs for each domain.

Omranic 02-11-2006 10:08 AM

nice

but how Do I now the location & the path of the file common.log ?

Trigunflame 02-11-2006 10:17 AM

Quote:

Originally Posted by SolidSnake@GTI
nice

but how Do I now the location & the path of the file common.log ?

This simple hack is generally for the technically inclined :), but the logs can be any place; if you dont know the exact path to your logs try asking your webhost where you can find it.

If you use cpanel, you should have access to a log page that will tell you the location of the logs for your site.

Trigunflame 02-11-2006 06:44 PM

Changed:
Moved feof loop outside of the fscanf to prevent termination of non-matching lines.

Guest210212002 02-11-2006 08:20 PM

This work with linux? I don't have a common.log on my server.


All times are GMT. The time now is 12:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01168 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete