Releases: reyjrar/es-utils
Releases · reyjrar/es-utils
8.5
8.2
- Adds
--with-missing
option toes-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
- Adds documentation for
es-aggregate.pl
andApp::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
Add support for OpenSearch to the distribution.
7.9.1
- 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 viaes_indices()
7.9
- Fix timeout handling
- Allow for connection preferences into the
meta
settings section - Allow
_id
to be shown byes-search.pl
- Look in
~/.config
fores-utils/config.yaml
- Started some work on library for handling aggregation queries
Brave New Whirled
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"
- Subaggregations with --top, e.g: es-search.pl --top rule.id --by cardinality:host --asc --with host
- 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.