Track download times in apache log files






















It also generates percentage and graph to provide a clearer representation. This is undoubtedly crucial from the commercial point of view. For example, it will help to provide an insight on the best time to publish contains on a website. It will list 10 most common response code issued on the server along with their frequencies.

From the security point of view , this function can serve as an red flag, providing early info to prevent attacks or dysfunctions on the server. Code in the range of and can potentially implicates security concern loopholes for hacker especially if the frequency is high. It also comes with percentage and graph interpretations.

It is valuable from the security point of view as a repetitive IP address may possibly be a thread to the server. Combine with the data from other functions, a conclusion can certainly be deduced. The top 10 types of documents will be presented in the form of numbers, percentage and graph.

By knowing the document type, we can study the general behaviour of client and adapt our contents following the trends. Indirectly, this can be exploited to strengthen commercialisation.

For example, the advertissements can be posted more on certain browser with high traffic. Project details Project links Homepage Bug Tracker. Download files Download the file for your platform. Files for apache-analyser, version 1. File type Wheel. There are other php counters out there that will do download counts but this is the only one that I've had personal experience with.

While a bit bulky for my tastes it should serve it's purpose. Hi Kethinov, If you are running Linux I would reccomend that you Splunk your logs in order to get the information you're looking for. Counting hits through the site's code is better, and probably a lot easier in the long run. Unless you set how much memory you are willing to use for this purpose in your php. Isn't this what AWStats is for?

PHP - Parsing Apache logs to determine of downloads a file has 13 posts. Originally posted by Rarian: It'd be much easier to do with grep but it's fairly straightforward in php as well. Originally posted by Dustin: you could write a quick little download redirector that tracks hits in the DB. Lord Pachelbel. I want apache logs because of filesizes, most files are above mb which I believe using this method will consume more resources. Can you please help me with the Log format?

I pasted it as it in apache2. Also is it possible to log only for files above 10mb? Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE.

Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Linked 1.



0コメント

  • 1000 / 1000