Giter Site home page Giter Site logo

mikejoh / elasticsearch-ingest-pipeline-examples Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 2.0 11 KB

Various examples using the Elasticsearch Ingest node pipelines

License: MIT License

Shell 100.00%
ingest-pipeline elasticsearch pipeline ingest-node docker

elasticsearch-ingest-pipeline-examples's Introduction

Elasticsearch Ingest pipeline examples

Pipelines pre-process documents before indexing, the Ingest node type in Elasticsearch includes a subset of Logstash functionality, part of that are the Ingest pipelines. All Elasticserach nodes enable ingest by default, this is configurable.

If you have used Logstash you'll recognize the different processors you can use to transform data before the document(s) are indexed.

The Ingest pipelines comes with a simulation API that can be used to test pipelines, it's easy to add a couple of example documents to dry-run them through a pipeline.

Besides testing the pipelines with the simulation API it's easy to handle errors within a pipeline, e.g. if an processor fails for some reason you can use the on_failure block to change the index to something like failed-my-index. You can also use ignore_failure to ignore an error and move on to the next processor.

All of the examples in this repository can easily be translated and used with the Dev Tool in Kibana.

Run Elasticsearch and Kibana in Docker

To run the examples in this repository as-is:

  1. Run the run_elastic.sh script
bash run_elastic.sh
  1. You should now be able to reach Elasticsearch on http://localhost:9200 and Kibana on http://localhost:5601

Notes

  • Tested on Elasticsearch and Kibana version 6.4

Examples

  • Simple pipeline example (uses the remove processor)
  • Handling errors in a pipeline
  • Using the simulation API
  • Advanced pipeline example (uses a combination of processors)

elasticsearch-ingest-pipeline-examples's People

Contributors

mikejoh avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.