• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Home
  • Contact Us

iHash

News and How to's

  • The 2023 Travel Hacker Bundle ft. Rosetta Stone Lifetime Subscription for $199

    The 2023 Travel Hacker Bundle ft. Rosetta Stone Lifetime Subscription for $199
  • Apple iPad Air 2, 16GB – Silver (Refurbished: Wi-Fi Only) for $106

    Apple iPad Air 2, 16GB – Silver (Refurbished: Wi-Fi Only) for $106
  • S300 eufyCam (eufyCam 3C) 3-Cam Kit for $579

    S300 eufyCam (eufyCam 3C) 3-Cam Kit for $579
  • eufy Baby Monitor 2 (2K, Smart, Wi-Fi) for $119

    eufy Baby Monitor 2 (2K, Smart, Wi-Fi) for $119
  • eufy SpaceView Add-On Video Baby Monitor for $99

    eufy SpaceView Add-On Video Baby Monitor for $99
  • News
    • Rumor
    • Design
    • Concept
    • WWDC
    • Security
    • BigData
  • Apps
    • Free Apps
    • OS X
    • iOS
    • iTunes
      • Music
      • Movie
      • Books
  • How to
    • OS X
      • OS X Mavericks
      • OS X Yosemite
      • Where Download OS X 10.9 Mavericks
    • iOS
      • iOS 7
      • iOS 8
      • iPhone Firmware
      • iPad Firmware
      • iPod touch
      • AppleTV Firmware
      • Where Download iOS 7 Beta
      • Jailbreak News
      • iOS 8 Beta/GM Download Links (mega links) and How to Upgrade
      • iPhone Recovery Mode
      • iPhone DFU Mode
      • How to Upgrade iOS 6 to iOS 7
      • How To Downgrade From iOS 7 Beta to iOS 6
    • Other
      • Disable Apple Remote Control
      • Pair Apple Remote Control
      • Unpair Apple Remote Control
  • Special Offers
  • Contact us

Santa drives his sleigh using Kibana Dashboards!

Dec 25, 2022 by iHash Leave a Comment


Table of Contents

  • Santa drives his sleigh using Kibana Dashboards!
  • Data sourcing
  • Control inventory
  • Metric widgets
  • Finding Santa with maps
  • Epilogue: Tracking Santa

Santa drives his sleigh using Kibana Dashboards!

kibana-santa-tracking-blogpost-720x420.png

It’s the festive season. Regardless of whether you believe in Santa or celebrate Christmas or another holiday in December, we can all appreciate the speed at which good ol’ St. Nick flies around the world with his trusty reindeer delivering presents to all the good children.

He’s been doing this job for a long time. But in 2022, his sleigh got an upgrade thanks to Kibana dashboards! He is now able to track the cities he’s visited along the way, the state of his journey, and his cool Christmas playlist.

Kibana Dashboards

This blog post shares details of building some of the key controls Santa uses to drive his sleigh and track his journey across the world. We’ll present the data behind it, and show how you can validate your maps through the Kibana replay feature for a live picture of where Santa is, and the controls used for each dashboard widget.

Data sourcing

The dashboard is populated by two distinct data sources. The most important source is the navigation information showing when Santa reaches each city on Christmas. For any stop on Santa’s journey, we need the geographical coordinates of that point along with the country and city to populate our map.
GeoJSON is an open format for representing graphical data for consumption by mapping libraries. As a result, there are many files available for us to use, such as this one containing capital city data from Stefanie Doll. It includes features that have the data we need in the following format:

{
        "properties": {
            "country": "Bangladesh",
            "city": "Dhaka",
            "tld": "bd",
            "iso3": "BGD",
            "iso2": "BD"
        },
        "geometry": {
            "coordinates": [90.24, 23.43],
            "type": "Point"
        },
        "id": "BD"
    }Read more

There are two key transformations required to convert this data into NDJSON, or Newline delimited JSON, a file that can be consumed via the Kibana data import. 

  1. Flatten the properties into a single object that also includes the geometry attribute. The geometry attribute itself requires no manipulation as it is already in a format supported by the geo_point data type present in Elasticsearch. 
  2. Addition of a timestamp field representing the time Santa arrives in that city. 

With a bit of Christmas magic, and running the resulting JSON through an NDJSON converter, we end up with data similar to the following:

{"country":"Bangladesh","city":"Dhaka","tld":"bd","iso3":"BGD","iso2":"BD","location":{"coordinates":[90.24,23.43],"type":"Point"},"@timestamp":"2022-12-24T16:15Z"}
{"country":"Belgium","city":"Brussels","tld":"be","iso3":"BEL","iso2":"BE","location":{"coordinates":[4.2,50.5],"type":"Point"},"@timestamp":"2022-12-25T00:45Z"}

The NDJSON file can be uploaded via the Upload file integration to create the index santa-city-visits-2022, making use of the advanced import to tweak the index mappings. Irrespective of which option you use, pay careful attention to the data types of your timestamp and location fields, which should be of types date and geo_point respectively as illustrated below.

PUT santa-city-visits-2022 {
    "mappings": {
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "city": {
          "type": "keyword"
        },
        "country": {
          "type": "text"
        },
        "iso2": {
          "type": "keyword"
        },
        "iso3": {
          "type": "keyword"
        },
        "location": {
          "type": "geo_point"
        },
        "tld": {
          "type": "keyword"
        }
      }
    }
  }Read more

On such a long journey, Santa may want to crank up the tunes just as we would on a long car ride. Therefore, our second dataset is a festive playlist to get him in the mood for a rest after his shift. The mapping for the santas-playlist index is comparatively simpler than our location data as it doesn’t have any time series or geographic information. Our year could have been used as a date field, but it’s not required for our uses. What is needed is ensuring that we have keyword fields for any fields presented in our table, such as title and artist. For that reason, we have used multi-fields to have support for full-text search and aggregations.

PUT santas-playlist
{
  "mappings": {
    "properties": {
      "title": {
        "type": "keyword",
        "fields": {
          "raw": { 
            "type":  "text"
          }
        }
      },
      "artist": {
        "type": "keyword",
        "fields": {
          "raw": { 
            "type":  "text"
          }
        }
      },
      "album": {
        "type": "keyword",
        "fields": {
          "raw": { 
            "type":  "text"
          }
        }
      },
      "release_year": {
        "type": "short"
      },
      "rating": {
        "type": "byte"
      }
    }
  }
}Read more

These items can be crafted into a _bulk request to add the documents to the index. I’ve hand-crafted a few favorites in this sample request:

POST santas-playlist/_bulk
{ "index": {} }
{ "title": "I Wish It Could Be Christmas Everyday", "artist": "Wizzard", "album": "Now That's What I Call Christmas", "release_year": "1973", "rating": "4" }
{ "index": {} }
{ "title": "Merry Christmas Everyone", "artist": "Shakin' Stevens", "album": "Merry Christmas Everyone", "release_year": "1985", "rating": "5" }
{ "index": {} }
{ "title": "One More Sleep", "artist": "Leona Lewis", "album": "Christmas, With Love", "release_year": "2013", "rating": "2" }

A data view is required for each index to allow us to create controls on top using Kibana. With the upload integration, this is generated automatically. But when creating our index, as we did for the playlist, we need to create a new data view matching our index pattern within Stack Management.

Kibana Dashboards

Now onto the fun bit: creating our Dashboard!

Control inventory

The dashboard contains many types of control created using different Kibana features. Each is important for helping Santa guide his reindeer-pulled sleigh across the world to deliver presents. High-level details of how each control is created are given according to the numbered figure below within this section.

Kibana Dashboard

Metric widgets

Santa will see wonderful sights as he travels through the world, such as the Northern Lights! Images are not explicitly supported controls in Kibana. But Markdown can! The Markdown support in TSVB is how controls 1 and 2 show Santa’s view and the current weather have been created. Santa’s view is driven via the below configuration:

Kibana Dashboard

Santa needs to know the time to make sure he’s on track with his deliveries. In control 3 we have added UTC time using signal updates in VegaLite via the Custom visualization feature. Credit goes to our wonderful Discuss community who came up with this solution, which has been revamped to use the utcFormat method instead of string concatenation:

{
  "$schema": "https://vega.github.io/schema/vega/v5.json",
  "signals": [
    {
      "name": "time",
      "init": "utcFormat(now(), '%I:%M %p')",
      "on": [{"events": {"type": "timer", "throttle": 1000}, "update": "utcFormat(now(), '%I:%M %p')"}]
    }
  ],
  "marks": [
    {
      "type": "text",
      "align": "center",
      "encode": {
        "update": {
          "text": {"signal": "time"},
          "opacity": {"value": 1},
          "x": {"value": 100},
          "y": {"value": 30},
          "fontSize": {"value": "30"}
        }
      }
    }
  ]
}Read more

Lens is a great way to create simple visualization controls quickly for dashboards. Many of our widgets are created using the basic Lens options, including:

  1. The magic and cookie gauges, as denoted as controls 5 and 8. These controls have reversed color mapping rules using the traditional red-amber-green color coding. Low magic is red as it is problematic as Santa needs fuel to drive his sleigh. But he needs to watch his sugar levels, which is why a large number of cookies is mapped to red instead of green.
  2. The total cities widget metric in item 6.
  3. Santa’s playlist in control 9 is a simple table using the title and artist keyword fields as rows, with a hidden metric column based on our song ratings. 

The circular gauge presented in control 7 is different from the others as it’s generated via TSVB. The aggregation settings are a simple count in this case, but much like Lens gauges, we can add color rules to indicate status similarly, as illustrated below.

Kibana Dashboard

Finding Santa with maps

The central control of our dashboard is the map. This is the same as the sat nav in the central console of your car. It would be rather challenging for Santa to deliver presents and travel to his next destination if he didn’t know where he was!

Kibana maps allow you to add multiple layers of data on top of the map. The Documents layer option allows for basic points to be included as needed here. With the work undertaken to define our location geo_point attribute on our santa-city-visits-2022 index, it will be automatically picked up when we select the corresponding data view.

Kibana Dashboard

Within the layer settings, it’s important to specify tooltip fields to help users obtain more information on a given location. In our example, we set @timestamp, city, and country as the tooltip fields. What is more important is setting our marker as a gift, which is present as one of many in-built icons in the icon symbol type:

Kibana Dashboard

Epilogue: Tracking Santa

One challenge in validating our map data and configuration is that Christmas Eve is still a bit away. We’re all excited to see him trace across the world delivering presents, right? Thankfully Kibana can rescue our Christmas by allowing us to replay the time series data and see the map update using the Timeslider within the Edit map screen.

videoImage



Source link

Share this:

  • Facebook
  • Twitter
  • Pinterest
  • LinkedIn

Filed Under: News Tagged With: Dashboards, Drives, Kibana, Santa, sleigh

Special Offers

  • The 2023 Travel Hacker Bundle ft. Rosetta Stone Lifetime Subscription for $199

    The 2023 Travel Hacker Bundle ft. Rosetta Stone Lifetime Subscription for $199
  • Apple iPad Air 2, 16GB – Silver (Refurbished: Wi-Fi Only) for $106

    Apple iPad Air 2, 16GB – Silver (Refurbished: Wi-Fi Only) for $106
  • S300 eufyCam (eufyCam 3C) 3-Cam Kit for $579

    S300 eufyCam (eufyCam 3C) 3-Cam Kit for $579
  • eufy Baby Monitor 2 (2K, Smart, Wi-Fi) for $119

    eufy Baby Monitor 2 (2K, Smart, Wi-Fi) for $119
  • eufy SpaceView Add-On Video Baby Monitor for $99

    eufy SpaceView Add-On Video Baby Monitor for $99

Reader Interactions

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

  • Facebook
  • GitHub
  • Instagram
  • Pinterest
  • Twitter
  • YouTube

More to See

Microsoft Urges Customers to Secure On-Premises Exchange Servers

Jan 28, 2023 By iHash

The 2023 Travel Hacker Bundle ft. Rosetta Stone Lifetime Subscription for $199

Jan 30, 2023 By iHash

Tags

* Apple Cisco computer security cyber attacks cyber crime cyber news cybersecurity Cyber Security cyber security news cyber security news today cyber security updates cyber threats cyber updates data breach data breaches google hacker hacker news Hackers hacking hacking news how to hack incident response information security iOS 7 iOS 8 iPhone Malware microsoft network security ransomware ransomware malware risk management Secure security security breaches security vulnerabilities software vulnerability the hacker news Threat update video Vulnerabilities web applications

Latest

Why AutoML Isn’t Enough to Democratize Data Science 

You can cook food in a microwave in minutes. But we don’t say that microwaves “democratized” cooking. Preparing a meal requires much more: selecting and preparing ingredients, optimizing the cooking method, and creating the right ambiance. The microwave just accelerates one part of the process. Just as microwaves don’t handle the entire meal, automated machine […]

@insideBIGDATApodcast: ChatGPT – The Human AI Partnership

Welcome to the insideBIGDATA series of podcast presentations, a curated collection of topics relevant to our global audience. We bring you compelling topics including: big data, data science, machine learning, AI, and deep learning. Enjoy! For this installment, we bring you the second episode of Fireside Chatbots featuring Greylock general partner Reid Hoffman and ChatGPT, […]

Apple iPad Air 2, 16GB – Silver (Refurbished: Wi-Fi Only) for $106

Expires July 11, 2120 23:59 PST Buy now and get 40% off KEY FEATURES The iPad Air 2 boasts 40% faster CPU performance and 2.5 times the graphics performance when compared to its predecessor. Its 9.7″ LED-backlit Retina IPS LCD with a resolution of 2048×1536 provides richer colors, greater contrast, and sharper images for a […]

Charlie Klein

Reduce MTTR with Logz.io’s Single-Pane-of-Glass Observability Data Analytics

Observability data provides the insights engineers need to make sense of increasingly complex cloud environments so they can improve the health, performance, and user experience of their systems. These insights can quickly answer business-critical questions like, “what is causing this latency in my front end?” Or, “why is my checkout service returning errors?” Observability is […]

Deci delivers breakthrough inference performance on Intel’s 4th Gen Sapphire Rapids CPU

Deci, the deep learning company building the next generation of AI, announced a breakthrough performance on Intel’s newly released 4th Gen Intel® Xeon® Scalable processors, code-named Sapphire Rapids. By optimizing the AI models which run on Intel’s new hardware, Deci enables AI developers to achieve GPU-like inference performance on CPUs in production for both Computer Vision and Natural Language Processing (NLP) […]

eufy SpaceView Add-On Video Baby Monitor for $99

Expires January 28, 2123 06:33 PST Buy now and get 0% off Sweet Dreams on the Big Screen: The large 5″ 720p video baby monitor display shows a sharp picture with 10 times more detail than ordinary 240p-display baby monitors. Long-Lasting Views: Watch your baby for up to 15 hours per chargeplenty of time to […]

Jailbreak

Pangu Releases Updated Jailbreak of iOS 9 Pangu9 v1.2.0

Pangu has updated its jailbreak utility for iOS 9.0 to 9.0.2 with a fix for the manage storage bug and the latest version of Cydia. Change log V1.2.0 (2015-10-27) 1. Bundle latest Cydia with new Patcyh which fixed failure to open url scheme in MobileSafari 2. Fixed the bug that “preferences -> Storage&iCloud Usage -> […]

Apple Blocks Pangu Jailbreak Exploits With Release of iOS 9.1

Apple has blocked exploits used by the Pangu Jailbreak with the release of iOS 9.1. Pangu was able to jailbreak iOS 9.0 to 9.0.2; however, in Apple’s document on the security content of iOS 9.1, PanguTeam is credited with discovering two vulnerabilities that have been patched.

Pangu Releases Updated Jailbreak of iOS 9 Pangu9 v1.1.0

  Pangu has released an update to its jailbreak utility for iOS 9 that improves its reliability and success rate.   Change log V1.1.0 (2015-10-21) 1. Improve the success rate and reliability of jailbreak program for 64bit devices 2. Optimize backup process and improve jailbreak speed, and fix an issue that leads to fail to […]

Activator 1.9.6 Released With Support for iOS 9, 3D Touch

  Ryan Petrich has released Activator 1.9.6, an update to the centralized gesture, button, and shortcut manager, that brings support for iOS 9 and 3D Touch.

Copyright iHash.eu © 2023
We use cookies on this website. By using this site, you agree that we may store and access cookies on your device. Accept Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT