Skip to main content

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

Logging In

Make sure you have an account setup at IHAN and you have your email address and password for your IHAN account to hand.

$ source ~/.ihan/bin/activate
$ ihan login

Enter your email address and password when prompted. If authentication is successful API credentials will be written to ~/.ihan/config. From this point on the live and backfill commands should work without issue.

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.

Metadata

Release files for ihan 0.3.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ihan 0.3.21
File Size Uploaded Provenance Actions
ihan-0.3.21.tar.gz 5.3 kB Without provenance Details for ihan-0.3.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ihan 0.3.21
File Interpreter ABI Platform Actions
ihan-0.3.21-py2-none-any.whl Python 2 none any Details for ihan-0.3.21-py2-none-any.whl

Total release size: 10.5 kB

Release files / ihan-0.3.21.tar.gz

Download URL ihan-0.3.21.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
12c8fb5a13278f78c4b99d39a432f9ed9603043ba5e3c40b05d7af9cbb456e43
BLAKE2b-256 checksum
How to use checksums
54291fb2bc4e3d4316a3634fe85d11bcbbe955a3db545bfff49f45781ea650ad
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ihan-0.3.21-py2-none-any.whl

Download URL ihan-0.3.21-py2-none-any.whl
Size 5.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5ecdfb8c20e47568ec20e3fb4d97de0411b216de365add008c64bccd39bbfe51
BLAKE2b-256 checksum
How to use checksums
fb2e199abd5bbb477f07a437cc167314de6c6879ae0811a9e55104175572b333
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for ihan 0.3.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page