Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
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.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans