Skip to content

Releases: reyjrar/es-utils

8.5

13 Apr 18:34
Compare
Choose a tag to compare
  • Adds the es-cluster-settings.pl script to manage cluster settings
  • Fixes some warnings
  • Safer date parsing in es_index_days_old()

8.2

24 Sep 22:39
Compare
Choose a tag to compare
8.2
  • Adds --with-missing option to es-search.pl to add a MISSING bucket to --top aggregations
  • Fixes ::Query->add_bool() support for adding array references as ES 7.x is much more strict

8.1

01 Sep 00:47
Compare
Choose a tag to compare
8.1
  • Adds documentation for es-aggregate.pl and App::ElasticSearch::Utilities::Query
  • Adds tests for App::ElasticSearch::Utilities::Query
  • Fixes the handling of minimum_should_match parameter.

This code now does the right thing:

my $q = App::ElasticSearch::Utilities::Query->new();

$q->add_bool( should => { term => { foo => 'bar' } });
$q->add_bool( should => { term => { bar => 'baz' } });

$q->minimum_should_match(1);

Tests in place to make sure it does in the future too!

8.0

14 Aug 22:18
Compare
Choose a tag to compare
8.0

Add support for OpenSearch to the distribution.

7.9.1

14 Aug 02:06
Compare
Choose a tag to compare
  • More work on the ::Aggregation library for parsing aggregation result objects into flattened structures
  • Add es-aggregate.pl script which makes use of ::Aggregation to create and display aggregations
  • Now ::Query->execute() will use context inferred index lists as the default via es_indices()

7.9

30 Jul 18:24
Compare
Choose a tag to compare
7.9
  • Fix timeout handling
  • Allow for connection preferences into the meta settings section
  • Allow _id to be shown by es-search.pl
  • Look in ~/.config for es-utils/config.yaml
  • Started some work on library for handling aggregation queries

Brave New Whirled

19 Aug 04:30
Compare
Choose a tag to compare

Major Features

  • Replaced Elastijk with LWP::UserAgent.
    • HTTP Proxy Support
    • HTTPS (TLS) Support
    • HTTP Basic Authentication
      • Username/password lookup via netrc and password commands, i.e. wrappers to password vaults/keychains
    • All utilities added: --proto, --http-username, --http-password, --password-exec to take advantage of new features.
  • es-search.pl --with
    • Subaggregations with --top, e.g: es-search.pl --top rule.id --by cardinality:host --asc --with host
      • "Top rule by least distinct host count showing the hosts"
  • es-graphite-dynamic.pl
    • --prefix: override the prefix, useful for use with other collectors like Diamond and collectd
    • --no-prefix: completely disable the metric prefixes.
  • Documentation updates and fixes.

Internal Overhaul

  • Replaced Elastijk/Hijk with LWP::UserAgent and encapsulated in App::ElasticSearch::Utilities::Connection
  • App::ElasticSearch::Utilities::Connection provides a wrapper for response handling to decode payloads passed back from Elasticsearch
  • HTTP::Request subclassed by App::ElasticSearch::Utilities::HTTPRequest to override the get/set content() methods to enable Elasticsearch's off RFC HTTP body content.
  • LWP::UserAgent::get_basic_credentials() monkey patched to call back to App::ElasticSearch::Utilities::es_basic_auth() which tries to be as magical as possible.
  • App::ElasticSearch::Utilities::es_basic_auth() added a callback for LWP::UserAgent::get_basic_credentials(). Using this method the es_basic_auth() function is only called when the server requires authentication.
  • es_pass_exec() added to lookup a password using a shell script to use a password manager to keep passwords safe.