IHAN Client for feeding and back filling log files
Project description
This is the installation and usage guide for the IHAN Client. This utility is used for feeding and back filling log files to the IHAN service.
Requirements
Python 2.7 and Python 3.4+ are supported.
On most Ubuntu systems you should be able to install Python and virtualenv via the following:
$ sudo apt update
$ sudo apt install \
python-pip \
python-virtualenv
Installation
$ virtualenv ~/.ihan
$ source ~/.ihan/bin/activate
$ pip install --upgrade ihan
Shipping Logs
Make sure the user account that is running has read access to the main nginx log file. If it doesn’t please run the following. Replace your_user_name with your unix username (found via whoami).
$ sudo chown your_user_name:www-data /var/log/nginx/access.log
$ sudo chmod u+r /var/log/nginx/access.log
$ sudo apt install screen
$ screen
$ ihan live /var/log/nginx/access.log
Once that’s running type CTRL-A and then CTRL-D to return to your regular shell.
Backfill Log Files
If the log file is not compressed, run the following:
$ screen
$ ihan backfill /var/log/nginx/access.log
If it is compressed, run the following:
$ screen
$ gunzip -c /var/log/nginx/access.log.gz | ihan backfill -
Once that’s running type CTRL-A and then CTRL-D to return to your regular shell.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ihan-0.3.13.tar.gz
.
File metadata
- Download URL: ihan-0.3.13.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ce38ef4d0c8f92023a60d2cf157ed24d93beab751649c49336f5c8de99d5899 |
|
MD5 | 28a23d4ad34ac6d69b3632180972e451 |
|
BLAKE2b-256 | c4609bb9fe6213ac4ec38c8f712e8979ea47267d017215cd692c81484ad4e12c |
File details
Details for the file ihan-0.3.13-py2-none-any.whl
.
File metadata
- Download URL: ihan-0.3.13-py2-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d2694811cecc8e3011eca3dcc3782bb2d5e6f9d5ce97df56eefe945c06b1f21 |
|
MD5 | 67f89c0927699a62f8bbfe9594f989c4 |
|
BLAKE2b-256 | daf7a46136e82b67784e0a0d9d13c2b42162c2836797594a7a928804b3889ff4 |