Elasticsearch is a great data storage and analysis tool. But did you know that it can also do data processing? With ingest pipelines, you can leverage data processing capabilities similar to Logstash. In this hands-on lab, you will get to create and use ingest pipelines in Elasticsearch.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create the migrate_accounts Ingest Pipeline
From the Kibana console on the
accounts2
node, create an ingest pipeline calledmigrate_accounts
that does the following:- Removes the
account_number
field. - Creates the
fullname
field, which is a concatenation of thefirstname
field, a space, and thelastname
field. - Adds a 5% bonus to each account’s
balance
and keeps track of applied bonuses with thebonus_pct
field.
- Removes the
- Copy the accounts Index from the accounts1 Node to the accounts2 Node with the migrate_accounts Ingest Pipeline
From the Kibana console on the
accounts2
node, remote copy theaccounts
index from theaccounts1
node to a localaccounts
index, and process the copied data with themigrate_accounts
ingest pipeline.