Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ihan-0.3.9.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

ihan-0.3.9-py2-none-any.whl (4.3 kB view details)

Uploaded Python 2

File details

Details for the file ihan-0.3.9.tar.gz.

File metadata

  • Download URL: ihan-0.3.9.tar.gz
  • Upload date:
  • Size: 3.7 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

Hashes for ihan-0.3.9.tar.gz
Algorithm Hash digest
SHA256 c786129d31c94e6bd3c5f301e7e79038485e3a421f2e3b4bc7616095f8fe7bd8
MD5 f92e2245c42fcffb25c43dd74b689e63
BLAKE2b-256 4264278c225a9d592cf895f578e4d4e4affcfd9453a94e9da8ec33ae09177e94

See more details on using hashes here.

File details

Details for the file ihan-0.3.9-py2-none-any.whl.

File metadata

  • Download URL: ihan-0.3.9-py2-none-any.whl
  • Upload date:
  • Size: 4.3 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

Hashes for ihan-0.3.9-py2-none-any.whl
Algorithm Hash digest
SHA256 8e68d029913622c022dc5711c47d582a0b683fceeb1ea1b6c1320d02a1a1da5b
MD5 8908442f093d53e4655762bce54aef53
BLAKE2b-256 4b832c0a7a8a0a422f2569eafa16b72a5cf35ae9e7b55e1211b7091112488f5f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page