Provides a handy method for having a handy extensible script for running elasticsearch searches and displaying the results. https://metacpan.org/release/Search-ESsearcher
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Zane C. B-H 318c4ae3c1 note the changes vor 2 Tagen
Search-ESsearcher note the changes vor 2 Tagen
.gitignore meh vor 3 Tagen
LICENSE Initial commit vor 6 Monaten
README.md Update README.md vor 4 Monaten
essearcher.png Add files via upload vor 6 Monaten

README.md

About

essearcher

It provides a dynamic system for searching logs stored in Elasticsearch. Currently it has out of the box support for the items below.

It has 5 parts that are listed below.

  • options : Getopt::Long options that are parsed after the initial basic options. These are stored and used with the search and output template.
  • elastic : This is a JSON that contains the options that will be used to initialize Search::Elasticsearch.
  • search : This is a Template template that will be fed to Search::Elasticsearch->search.
  • output : This is a Template template that will be be used on each found item.

It will search for those specified in the following order.

  1. $ENV{‘HOME’}.‘/.config/essearcher/’.$part.‘/’.$name
  2. $base.‘/etc/essearcher/’.help.‘/’.$name
  3. Search::ESsearcher::Templates::$name->$part (except for elastic)

INSTALLING

FreeBSD

pkg install perl5 p5-JSON p5-Error-Helper p5-Template p5-Template-Plugin-JSON p5-Time-ParseDate p5-Term-ANSIColor p5-Data-Dumper
cpanm Search::ESsearcher

Linux

CentOS

yum install cpanm 
cpanm Search::ESsearcher

Debian

apt install perl perl-base perl-modules make cpanminus
cpanm Search::ESsearcher