msempere / aeropipe

Treat Aerospike Large Lists unix-like pipelines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aeropipe

Treat Aerospike Large Lists unix-like pipelines

Installation:

make build
make install

Setup

Aeropipe needs the following environment vars in order to connect to Aerospike:

  •  	`AEROSPIKE_HOST` (Database host, default: 127.0.0.1)
    
  •  	`AEROSPIKE_PORT` (Database port, default: 3000)
    
  •  	`AEROSPIKE_AEROPIPE_NAMESPACE` (Namespace configuration for Aerospike. [More info] (https://www.aerospike.com/docs/operations/configure/namespace/), default: aeropipe_ns)
    
  •  	`AEROSPIKE_AEROPIPE_LIST` (List where the data will be placed/located, default: aeropipe_list)
    

Example: (~/.basrc)

export AEROSPIKE_HOST="127.0.0.1"
export AEROSPIKE_PORT=3000
export AEROSPIKE_AEROPIPE_NAMESPACE="ssd_namespace"
export AEROSPIKE_AEROPIPE_LIST="my_awesome_list"

Usage examples:

Pipe Apache access logs to Aerospike:

cat /var/log/apache2/access.log | aeropipe

Pipe Aerospike content to file:

aeropipe > /tmp/apache2/access.log

Animated example

License

Distributed under MIT license. See LICENSE for more information.

About

Treat Aerospike Large Lists unix-like pipelines

License:MIT License


Languages

Language:Go 78.2%Language:Makefile 21.8%