IHAN Client for feeding and back filling log files
Project description
IHAN Client
===========
This is the installation and usage guide for the `IHAN <https://www.ihan.ee/>`_ 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:
.. code-block:: bash
$ sudo apt update
$ sudo apt install \
python-pip \
python-virtualenv
Installation
------------
.. code-block:: bash
$ virtualenv ~/.ihan
$ source ~/.ihan/bin/activate
$ pip install --upgrade ihan
Logging In
----------
Make sure you have an account setup at `IHAN <http://www.ihan.ee/>`_ and you have your email address and password for your IHAN account to hand.
.. code-block:: bash
$ 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``).
.. code-block:: bash
$ sudo chown your_user_name:www-data /var/log/nginx/access.log
$ sudo chmod u+r /var/log/nginx/access.log
.. code-block:: bash
$ 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:
.. code-block:: bash
$ screen
$ ihan backfill /var/log/nginx/access.log
If it is compressed, run the following:
.. code-block:: bash
$ 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.
===========
This is the installation and usage guide for the `IHAN <https://www.ihan.ee/>`_ 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:
.. code-block:: bash
$ sudo apt update
$ sudo apt install \
python-pip \
python-virtualenv
Installation
------------
.. code-block:: bash
$ virtualenv ~/.ihan
$ source ~/.ihan/bin/activate
$ pip install --upgrade ihan
Logging In
----------
Make sure you have an account setup at `IHAN <http://www.ihan.ee/>`_ and you have your email address and password for your IHAN account to hand.
.. code-block:: bash
$ 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``).
.. code-block:: bash
$ sudo chown your_user_name:www-data /var/log/nginx/access.log
$ sudo chmod u+r /var/log/nginx/access.log
.. code-block:: bash
$ 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:
.. code-block:: bash
$ screen
$ ihan backfill /var/log/nginx/access.log
If it is compressed, run the following:
.. code-block:: bash
$ 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
ihan-0.3.20.tar.gz
(5.3 kB
view details)
Built Distribution
ihan-0.3.20-py2-none-any.whl
(5.2 kB
view details)
File details
Details for the file ihan-0.3.20.tar.gz
.
File metadata
- Download URL: ihan-0.3.20.tar.gz
- Upload date:
- Size: 5.3 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 | b543c7d051eaa45e88e7f55a9b06edff81e77c89439a32dabc6082cbf2fa8a21 |
|
MD5 | 327342a1cafd6f03e942da53ef46cf00 |
|
BLAKE2b-256 | f37cc3d844f1dec44895defb2b046233b37381ba7fc93119830ad77c5e059f55 |
File details
Details for the file ihan-0.3.20-py2-none-any.whl
.
File metadata
- Download URL: ihan-0.3.20-py2-none-any.whl
- Upload date:
- Size: 5.2 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 | c5355c454ff191b309fdfca0e46e7f072482ad4425ef705a80499f59649d454e |
|
MD5 | 4bf69231593fbc626b12566e8122bf9a |
|
BLAKE2b-256 | 8b292e08f664127744ffc22b817c7bf884689f2806fb227dbc7c710ec1be8b58 |