Skip to content

Brave New Whirled

Compare
Choose a tag to compare
@reyjrar reyjrar released this 19 Aug 04:30
· 190 commits to master since this release

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.