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.19.tar.gz
.
File metadata
- Download URL: ihan-0.3.19.tar.gz
- Upload date:
- Size: 5.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.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8458681545de98380f489d9cdbd6e0b718547e70adcaac8645a2d3c45b6569d5 |
|
MD5 | 1e2abc5f0320ac440af2b4ebb8ca82b9 |
|
BLAKE2b-256 | 55782834a6972ea38051e90af2f3bb3078bae80d4d5864a3955d03da3e8bcec3 |
File details
Details for the file ihan-0.3.19-py2-none-any.whl
.
File metadata
- Download URL: ihan-0.3.19-py2-none-any.whl
- Upload date:
- Size: 5.0 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.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1451b48915ead21be5d5d7cefe48241f5eeab9a8c2d661f3c042ffc6c0b70db |
|
MD5 | 5e1ba61f323503dd21f037f9362faa6a |
|
BLAKE2b-256 | 323882026d82c1e2966c2fee3b4a3996fe29da19cb4fa099cffe9caec7148002 |