Metadata-Version: 2.1
Name: pylastic-exporter
Version: 2.0.5
Summary: Create CSV from elasticsearch
Home-page: https://github.com/alexperezortuno/elastic-export
Author: Alex Pérez Ortuño
Author-email: alexperezortuno@gmail.com
License: LICENSE
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# pylastic-report

| Flag | Default | Description |
|---|---| --- |
| -h or --help |   | Show this help message and exit. |
| -u or --h | | |

###Example commands to run:

````shell
python main.py -u localhost -i testing-* -p 9200 -g 2022-03-01T00:00:00 -l 2022-03-30T23:59:59 -q "i_test:*TEST*"
````

### To build binary executable in linux:

````shell
make
````

or run command:

````shell
pyinstaller -F --clean --noconfirm -n pylastic_report main.py
````

and copy the binary to the /usr/bin folder.

### Prerequisites:

Need bz2 for installation.

Ubuntu/Debian:

```shell
sudo apt-get install libbz2-dev
```

````shell
yum install bzip2-devel
````

### Install, check oudated list of packages

```shell
pip install -r requirements.txt
```

```shell
pip list --outdated
```

update the packages:

```shell
pip install pip-upgrader
```

remove packages:

```shell
pip freeze > unins && pip uninstall -y -r unins && rm unins
```
