2017 © Pedro Peláez
 

library qelastic

A Laravel Service Provider push user behavior log to Aws sqs then insert into elasticsearch

image

liquirice/qelastic

A Laravel Service Provider push user behavior log to Aws sqs then insert into elasticsearch

  • Wednesday, December 9, 2015
  • by liquirice
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

#Qelastic

Latest Stable Version License MIT, (*1)

, (*2)

A Laravel Service Provider push user behavior log or any log to Aws sqs. Using php artisan queue:listen to digest the queue and insert data into elasticsearch., (*3)

Installation

Install using composer:, (*4)

$ composer require liquirice/elasticlog
$ composer install

Install manually in composer.json:, (*5)

"require": {
    ...
    "liquirice/qelastic": "~1.0.0"
    ...
},

Laravel (optional)

Add the service provider in app/config/app.php:, (*6)

'providers' => array(
    ...
    Liquirice\Qelastic\QelasticServiceProvider::class,
    ...
)

We have already added the Qelastic alias for you:, (*7)

'aliases' => array(
    ...
    'Qelastic' => 'Liquirice\Qelastic\Facades\Qelastic',
    ...
)

Environment setting

Add the elasticsearch hostname and queue path in .env:, (*8)

...
ELASTICSEARCH_HOST=127.0.0.1:9200
QUEUE_PATH=App\Jobs\Track\UserBehavior
...

Basic Usage

Start by creating an Qelastic instance (or use the Qelastic Facade if you are using Laravel):, (*9)

Qelastic::pushToQueue(array(
    'user_id' => '1',
    'action' => 'click',
    'object' => 'event',
    'object_id' => '50786',
    'param' => '{
        "user_name": "admin",
        "email" : "admin@example.com"
    }'
))

Note: Test case not yet finish 1. Check input data is array or not. 2. Test unexpected data insert. 3. Check data whether push to queue or not., (*10)

License

Qelastic is licensed under The MIT License (MIT)., (*11)

The Versions

09/12 2015

dev-master

9999999-dev

A Laravel Service Provider push user behavior log to Aws sqs then insert into elasticsearch

  Sources   Download

The Requires

 

by Avatar liquirice

09/12 2015

dev-develop

dev-develop

A Laravel Service Provider push user behavior log to Aws sqs then insert into elasticsearch

  Sources   Download

The Requires

 

by Avatar liquirice

09/12 2015

v1.0.0

1.0.0.0

A Laravel Service Provider push user behavior log to Aws sqs then insert into elasticsearch

  Sources   Download

The Requires

 

by Avatar liquirice