Skip to content

A Python module that allows users to extract documents from a source, parse and ingest into Elasticsearch.

Notifications You must be signed in to change notification settings

mrsac7/es_transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ES Transfomer

A Python module that allows users to extract documents from a source, parse and ingest into Elasticsearch.

Setting Up

To setup, install the dependencies with pip:

python3 -m pip3 install -r requirements.txt

Running the project

usage: transformer [-h] [-c] [--source_ip SOURCE_IP]
                   [--source SOURCE] [--target_ip TARGET_IP]
                   --target TARGET

Parses documents, extracts required fields and inserts them to
the elasticsearch server.

optional arguments:
  -h, --help            show this help message and exit
  -c, --config          configure metadata for the indices
  --source_ip SOURCE_IP
                        ip of source
  --source SOURCE       name of the source index

required arguments:
  --target_ip TARGET_IP
                        ip of the target
  --target TARGET       name of the target index

Refer to the following example for more details:

Initializing the metadata

python3 src/transformer.py --config --target="sample"

Reindexing

python3 src/transformer.py --source="source" --target="sample"

About

A Python module that allows users to extract documents from a source, parse and ingest into Elasticsearch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages