Skip to content

Easy integration of ElasticSearch with Python applications.

Notifications You must be signed in to change notification settings

erickrr-bd/libPyElk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

libPyElk v1.2

Easy integration of ElasticSearch with Python applications.

Utilities

  • Create connection to the ElasticSearch cluster based on a defined configuration file.
    • Create connection to the ElasticSearch cluster without authentication method.
    • Create connection to the ElasticSearch cluster using HTTP Authentication as the authentication method.
    • Create connection to the ElasticSearch cluster using API Key as an authentication method.
    • The connection can be created using or not using the SSL/TLS protocol. It's recommended to use the SSL/TLS protocol for security reasons.
    • When using the SSL/TLS protocol, the option to verify or not verify the SSL certificate can be used. It's recommended to use the option to verify the SSL certificate, for security reasons.
  • Create a Search object
  • Performs a search in ElasticSearch using Query String.
  • Performs a search in ElasticSearch using Query String and Aggregations.
  • Generates a Telegram message based on the result of a search in ElasticSearch.

Requirements

NOTE: The versions displayed are the versions with which it was tested. This doesn't mean that versions older than these don't work. This library doesn't work with versions 8.x of the Python ElasticSearch Client.

Installation

Copy the "libPyElk" folder to the following path:

/usr/local/lib/python3.9/site-packages

NOTE: The path depends on the Python version.