Skip to content

ezPAARSE can ingest your (proxy) log files and show how users access suscribed electronic ressources.

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENCE.txt
Unknown
LICENSE.txt
Notifications You must be signed in to change notification settings

fredericinist/ezpaarse

 
 

Repository files navigation

ezPAARSE

Build Status Dependencies Status Join the chat at https://gitter.im/ezpaarse-project/ezpaarse
Docker status

ezPAARSE is an open-source software that can ingest your (proxy) log files and show how users access subscribed electronic resources. It filters, extracts and enriches the consultation events that were spotted and produces a CSV file following COUNTER codes of practice. This document describes how to install and run ezPAARSE on your computer.

Moreover, have a look to the ezpaarse demo, it will show you a nice user interface where you can register and test to inject your proxy logs.

Built-in proxies supported log formats are:

Table of content

Recommended system requirements

  • a linux box or VM (eg: Ubuntu)
  • 50Gb disk space (to be adjusted, depending on the quantity and size of logfiles to be simultaneously processed)
  • 2 cores of CPU
  • 2 to 4 Gb of RAM space

Prerequisites

The tools you need to let ezPAARSE run are:

ezPAARSE then comes with all the elements it needs to run. When the prerequesites are met, you can launch the make command (see below) that will run all installation steps.

Installation quickstart

If you are a Windows user, you can install ezPAARSE on your computer as a docker image. Please refer to the docker section below.

To install the latest stable version of ezPAARSE on a Unix-type system, open a terminal and type:

git clone https://github.com/ezpaarse-project/ezpaarse.git
cd ezpaarse
git checkout `git describe --tags --abbrev=0`
make

You can also download a stable version in the tar.gz format and type in a terminal:

tar -xzfv ezpaarse-X.X.X.tar.gz
cd ezpaarse-X.X.X
make

If you want to install the version in development (unstable), open a terminal and type:

git clone https://github.com/ezpaarse-project/ezpaarse.git
cd ezpaarse
make

Test the installation

This step allows you to validate that your install is working.

make start
make test

Usage

Anonymised example logfiles are made available in the repositories of ezPAARSE.

You need to make sure that ezPAARSE is started. To do so, type the following command:

make start

If you are not computer-savvy, the easiest way to work with ezPAARSE is to use its hmtl form, accessible from your favorite webbrowser and open the following URL: http://localhost:59599/

If you are computer-savvy, you can use an HTTP client (like curl) to send a logfile (for this example, we will use ./test/dataset/sd.2012-11-30.300.log) to ezPAARSE's Web service and get a CSV stream of consultation events as a response.

curl -X POST http://127.0.0.1:59599 \
             -v --proxy "" --no-buffer \
             --data-binary @./test/dataset/sd.2012-11-30.300.log

Or you can use the command ./bin/loginjector ezPAARSE provides you with to send the logfile to the web service in a simpler way:

. ./bin/env
cat ./test/dataset/sd.2012-11-30.300.log | ./bin/loginjector

You can also see quick countings on your data if you add the command ./bin/csvtotalizer at the end of the command line. Doing so, you will get an overview of the consultation events extracted from your logs by ezPAARSE:

. ./bin/env
cat ./test/dataset/sd.2012-11-30.300.log | ./bin/loginjector | ./bin/csvtotalizer

To stop ezPAARSE, you have to type the following command:

make stop

Advanced parameters

The default ezPAARSE parameters can be found in the config.json file. All these parameters can be changed. A good practice is to define a new file called config.local.json containing just the parameters you need to override.

For example, to change the ezPAARSE listening port (59599 by default), you can override the EZPAARSE_NODEJS_PORT by defining a new config.local.json file this way:

{
  "EZPAARSE_NODEJS_PORT": 45000
}

Use with docker

ezPAARSE is now available as a docker image. It exposes port 59599 and needs to be linked with a mongodb container in order to be fully functionnal.

Typical use:

docker run -d --name ezdb mongo
docker run -d --name ezpaarse --link ezdb:mongodb -p 59599:59599 ezpaarseproject/ezpaarse

# to stop the containers
docker stop ezpaarse ezdb
# to start again
docker start ezdb ezpaarse
# to have a look to the logs
docker logs -f ezpaarse

Behind a proxy: use docker run -e http_proxy[=...] -e https_proxy[=...]

In order to have a better control on the ezpaarse persistent data, you can also map mongodb binary data and the ezpaarse jobs folder to local folders thanks to the -v option:

mkdir /tmp/ezpaarse ; cd /tmp/ezpaarse
docker run -d --name ezdb -v $(pwd)/ezdb-data:/data/db mongo
docker run -d --name ezpaarse --link ezdb:mongodb -p 59599:59599 -v $(pwd)/ezpaarse-jobs:/root/ezpaarse/tmp/jobs ezpaarseproject/ezpaarse

You can also use docker-compose to run ezpaarse (experimental).

Typical use:

cd ezpaarse/misc/docker-compose/
docker-compose up

About

ezPAARSE can ingest your (proxy) log files and show how users access suscribed electronic ressources.

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENCE.txt
Unknown
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.5%
  • HTML 12.7%
  • Shell 7.0%
  • NSIS 1.6%
  • CSS 1.3%
  • Makefile 0.9%