• Labs icon Lab
  • Cloud
Google Cloud Platform icon
Labs

Define Scripted Fields in Kibana 7.6

With scripted fields in Kibana, we can create new fields not originally indexed in Elasticsearch that are computed at query time and added as a new field to the resulting documents. In this hands-on lab, we will explore the capabilities of scripted fields in Kibana by creating and visualizing some of our own.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 2h 0m
Published
Clock icon Jul 20, 2021

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create and Save the kilobytes Scripted Field for the Logs Index Pattern

    1. Create a new scripted field called kilobytes for the logs index pattern.
    2. Divide the value of the bytes field by 1024 to calculate the value for the scripted field.
    3. Save the field.
  2. Challenge

    Create and Save the flight Scripted Field for the Flights Index Pattern

    1. Create a new scripted field called flight for the flights index pattern.
    2. Concatenate a combination of static strings and the fields FlightNum, OriginAirportID, and DestAirportID to produce values that look like Flight FlightNum: OriginAirportID to DestAirportID (for example: Flight 3CG21F9: EZE to SHA).
    3. Save the field.
  3. Challenge

    Create and Save the system.memory.buffercache.pct Scripted Field for the metricbeat-* Index Pattern

    1. Create a new scripted field called system.memory.buffercache.pct for the metricbeat-* index pattern.
    2. Subtract the value of system.memory.actual.used.pct from system.memory.used.pct only if both fields do not have a size of 0 (otherwise known as a null value).
    3. Format the scripted field as a percentage number.
    4. Save the field.

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.