Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Apache Log Viewer Details »»
Apache Log Viewer
Version: 1.00, by Trigunflame Trigunflame is offline
Developer Last Online: Nov 2019 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-10-2006 Last Update: Never Installs: 6
 
No support by the author.

[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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-11-2006, 07:07 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yahoooooooooo

1st post 1st post
Reply With Quote
  #3  
Old 02-11-2006, 07:10 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now....gonna trying it...

tho dont what it will do.........& what benifit i wll get from it
Reply With Quote
  #4  
Old 02-11-2006, 07:23 AM
DeMiNe0 DeMiNe0 is offline
 
Join Date: Jun 2004
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 02-11-2006, 07:44 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not if they set things up so that each hosting client has it's own logs.
Reply With Quote
  #6  
Old 02-11-2006, 08:46 AM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-11-2006, 10:08 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice

but how Do I now the location & the path of the file common.log ?
Reply With Quote
  #8  
Old 02-11-2006, 10:17 AM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 02-11-2006, 06:44 PM
Trigunflame's Avatar
Trigunflame Trigunflame is offline
 
Join Date: Aug 2002
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Changed:
Moved feof loop outside of the fscanf to prevent termination of non-matching lines.
Reply With Quote
  #10  
Old 02-11-2006, 08:20 PM
Guest210212002
Guest
 
Posts: n/a
Default

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04651 seconds
  • Memory Usage 2,285KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete