GithubHelp home page GithubHelp logo

joshin42 / awstats_extractor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abeeken/awstats_extractor

0.0 1.0 0.0 7 KB

A little script that pulls data chunks out of AWStats flat files and saves them to CSV

PHP 100.00%

awstats_extractor's Introduction

awstats_extractor

This is a fairly simple PHP script which can be included in any app.

It takes a .txt file generated by AWStats and strips out the main chunks of data, spitting it back out into csv files.

Examples for running from cli and $_GET are included.

Usage

The main function can be found in core.php, but the example given in cli.php can get you using the script straight away.

First you need to locate your awstats data files. These will likely be in your awstats/wwwroot/cgi-bin folder and named something like awstats[mm][yyyy].[your-config-name].txt (obviously, replace the month, year and config names apropriately)

Run cli.php from the command line with: php cli.php path/to/data/file.

This will then generate a number of csv files in the outputs folder of the script containing the data from the various chunks of the awstats file.

awstats_extractor's People

Contributors

abeeken avatar criticalfault avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.