App-ElasticSearch-Utilities

 view release on metacpan or  search on metacpan

README.mkdn  view on Meta::CPAN


Returns a hashref

## es\_node\_stats()

Exposes GET /\_nodes/stats

Returns a hashref

## es\_flatten\_hash

Performs flattening that's compatible with Elasticsearch's flattening.

## def('key')

Exposes Definitions grabbed by options parsing

## es\_local\_index\_meta(key => 'base' || 'index')

Fetch meta-data from the local config file, i.e. `~/.es-utils.yaml`.

Format is:

    ---
    meta:
      index_name:
        key: value
      index_basename:
        key: value

The most specific version is searched first, followed by the index stripped of
it's date, and then on through all the bases discovered with
`es_index_bases()`.

This is used by the `es-search.pl` utility to do lookups of the **timestamp**
field it needs to sort documents, i.e.:

    ---
    meta:
      logstash:
        timestamp: '@timestamp'
        host: es-cluster-01.int.example.com
      bro:
        timestamp: 'timestamp'

# SUPPORT

## Websites

The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.

- MetaCPAN

    A modern, open-source CPAN search engine, useful to view POD in HTML format.

    [https://metacpan.org/release/App-ElasticSearch-Utilities](https://metacpan.org/release/App-ElasticSearch-Utilities)

- CPAN Testers

    The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.

    [http://www.cpantesters.org/distro/A/App-ElasticSearch-Utilities](http://www.cpantesters.org/distro/A/App-ElasticSearch-Utilities)

- CPAN Testers Matrix

    The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.

    [http://matrix.cpantesters.org/?dist=App-ElasticSearch-Utilities](http://matrix.cpantesters.org/?dist=App-ElasticSearch-Utilities)

## Bugs / Feature Requests

This module uses the GitHub Issue Tracker: [https://github.com/reyjrar/es-utils/issues](https://github.com/reyjrar/es-utils/issues)

## Source Code

This module's source code is available by visiting:
[https://github.com/reyjrar/es-utils](https://github.com/reyjrar/es-utils)

# AUTHOR

Brad Lhotsky <brad@divisionbyzero.net>

# CONTRIBUTORS

- Alexey Shatlovsky <alexey.shatlovsky@booking.com>
- Samit Badle <Samit.Badle@gmail.com>
- Takumi Sakamoto <takumi.saka@gmail.com>
- Vitaly Shupak <vitaly.shupak@deshaw.com>
- Alexey Surikov <ksurent@gmail.com>
- Andrei Grechkin <andrei.grechkin@booking.com>
- Daniel Ostermeier <daniel.ostermeier@gmail.com>
- Jason Rojas <jason.rojas@mgo.com>
- Kang-min Liu <gugod@gugod.org>
- Lisa Hare <lhare@inview.co.uk>
- Markus Linnala <Markus.Linnala@cybercom.com>
- Matthew Feinberg <mattf@intex.com>
- Mohammad S Anwar <mohammad.anwar@yahoo.com>

# COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Brad Lhotsky.

This is free software, licensed under:

    The (three-clause) BSD License



( run in 0.766 second using v1.01-cache-2.11-cpan-b16cb0d3907 )