Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Kibana Essentials
  • Table Of Contents Toc
Kibana Essentials

Kibana Essentials

By : Gupta
2.8 (4)
close
close
Kibana Essentials

Kibana Essentials

2.8 (4)
By: Gupta

Overview of this book

Use the functionalities of Kibana to discover data and build attractive visualizations and dashboards for real-world scenarios About This Book Perform real-time data analytics and visualizations, on streaming data, using Kibana Build beautiful visualizations and dashboards with simplicity and ease without any type of coding involved Learn all the core concepts as well as detailed information about each component used in Kibana Who This Book Is For Whether you are new to the world of data analytics and data visualization or an expert, this book will provide you with the skills required to use Kibana with ease and simplicity for real-time data visualization of streaming data. This book is intended for those professionals who are interested in learning about Kibana,its installations, and how to use it . As Kibana provides a user-friendly web page, no prior experience is required. What You Will Learn Understand the basic concepts of elasticsearch used in Kibana along with step by step guide to install Kibana in Windows and Ubuntu Explore the functionality of all the components used in Kibana in detail, such as the Discover, Visualize, Dashboard,and Settings pages Analyze data using the powerful search capabilities of elasticsearch Understand the different types of aggregations used in Kibana for visualization Create and build different types of amazing visualizations and dashboards easily Create, save, share, embed, and customize the visualizations added to the dashboard Customize and tweak the advanced settings of Kibana to ensure ease of use In Detail With the increasing interest in data analytics and visualization of large data around the globe, Kibana offers the best features to analyze data and create attractive visualizations and dashboards through simple-to-use web pages. The variety of visualizations provided, combined with the powerful underlying elasticsearch capabilities will help professionals improve their skills with this technology. This book will help you quickly familiarize yourself to Kibana and will also help you to understand the core concepts of this technology to build visualizations easily. Starting with setting up of Kibana and elasticsearch in Windows and Ubuntu, you will then use the Discover page to analyse your data intelligently. Next, you will learn to use the Visualization page to create beautiful visualizations without the need for any coding. Then, you will learn how to use the Dashboard page to create a dashboard and instantly share and embed the dashboards. You will see how to tweak the basic and advanced settings provided in Kibana to manage searches, visualizations, and dashboards. Finally, you will use Kibana to build visualizations and dashboards for real-world scenarios. You will quickly master the functionalities and components used in Kibana to create amazing visualizations based on real-world scenarios. With ample screenshots to guide you through every step, this book will assist you in creating beautiful visualizations with ease. Style and approach This book is a comprehensive step-by-step guide to help you understand Kibana. It’s explained in an easy-to-follow style along with supporting images. Every chapter is explained sequentially , covering the basics of each component of Kibana and providing detailed explanations of all the functionalities of Kibana that appeal.
Table of Contents (9 chapters)
close
close
8
Index

Importing a JSON file into Elasticsearch

To import a JSON file into Elasticsearch, we will use the elasticdump package. It is a set of import and export tools used for Elasticsearch. It makes it easier to copy, move, and save indexes. To install elasticdump, we will require npm and Node.js as prerequisites.

Installation of npm

In this section, npm along with Node.js will be installed. This section covers the installation of npm and Node.js on Ubuntu and Windows separately.

Installation of npm on Ubuntu 14.04

To install npm on Ubuntu, perform the following steps:

  1. Add the official Node.js PPA:
    sudo curl --silent --location  https://deb.nodesource.com/setup_0.12 | sudo bash -
    
    Installation of npm on Ubuntu 14.04

    As shown in the preceding screenshot, the command will add the official Node.js repository to the system and update the apt package database to include all the latest files under the packages. At the end of the execution of this command, we will be prompted to install Node.js and npm, as shown in the following screenshot:

    Installation of npm on Ubuntu 14.04
  2. Install Node.js by entering this command in the terminal:
    sudo apt-get install --yes nodejs
    
    Installation of npm on Ubuntu 14.04

    Note

    This will automatically install Node.js and npm as npm is bundled within Node.js.

  3. To check whether Node.js has been installed successfully, type the following command in the terminal:
    node –v
    

    Upon successful installation, it will display the version of Node.js.

  4. Now, to check whether npm has been installed successfully, type the following command in the terminal:
    npm –v
    

    Upon successful installation, it will show the version of npm.

Installation of npm on Windows

To install npm on Windows, follow these steps:

  1. Download the Windows Installer (.msi) file by going to https://nodejs.org/en/download/.
  2. Double-click on the downloaded file and keep clicking on Next to install the software.
  3. To validate the successful installation of Node.js, right-click and select GIT Bash.

    In GIT Bash, enter this:

    node –v
    

    Upon successful installation, you will be shown the version of Node.js.

  4. To validate the successful installation of npm, right-click and select GIT Bash.

    In GIT Bash, enter the following line:

    npm –v
    

    Upon successful installation, it will show the version of npm.

Installing elasticdump

In this section, elasticdump will be installed. It will be used to import a JSON file into Elasticsearch. It requires npm and Node.js installed. This section covers the installation on Ubuntu and Windows separately.

Installing elasticdump on Ubuntu 14.04

Perform these steps to install elasticdump on Ubuntu:

  1. Install elasticdump by typing the following command in the terminal:
    sudo npm install elasticdump -g
    
    Installing elasticdump on Ubuntu 14.04
  2. Then run elasticdump by typing this command in the terminal:
    elasticdump
    
  3. Import a sample data (JSON) file into Elasticsearch, which can be downloaded from https://github.com/guptayuvraj/Kibana_Essentials and is named tweet.json. It will be imported into Elasticsearch using the following command in the terminal:
    elasticdump \
    --bulk=true \
    --input="/home/yuvraj/Desktop/tweet.json" \
    --output=http://localhost:9200/
    

    Here, input provides the location of the file, as shown in the following screenshot:

    Installing elasticdump on Ubuntu 14.04

    As you can see, data is being imported to Elasticsearch from the tweet.json file, and the dump complete message is displayed when all the records are imported to Elasticsearch successfully.

    Note

    Elasticsearch should be running while importing the sample file.

Installing elasticdump on Windows

To install elasticdump on Windows, perform the following steps:

  1. Install elasticdump by typing the following command in GIT Bash:
    npm install elasticdump -g
    
    Installing elasticdump on Windows
  2. Then run elasticdump by typing this command in GIT Bash:
    elasticdump
    
  3. Import the sample data (JSON) file into Elasticsearch, which can be downloaded from https://github.com/guptayuvraj/Kibana_Essentials and is named tweet.json. It will be imported to Elasticsearch using the following command in GIT Bash:
    elasticdump \
    --bulk=true \
    --input="C:\Users\ygupta\Desktop\tweet.json" \
    --output=http://localhost:9200/
    

    Here, input provides the location of the file.

    Installing elasticdump on Windows

    The preceding screenshot shows data being imported to Elasticsearch from the tweet.json file, and the dump complete message is displayed when all the records are imported to Elasticsearch successfully.

    Note

    Elasticsearch should be running while importing the sample file.

    To verify that the data has been imported to Elasticsearch, open http://localhost:5601 in your browser, and this is what you should see:

    Installing elasticdump on Windows

When Kibana is opened, you have to configure an index pattern. So, if data has been imported, you can enter the index name, which is mentioned in the tweet.json file as index: tweet. After the page loads, you can see to the left under Index Patterns the name of the index that has been imported (tweet).

Now mention the index name as tweet. It will then automatically detect the timestamped field and will provide you with an option to select the field. If there are multiple fields, then you can select them by clicking on Time-field name, which will provide a drop-down list of all fields available, as shown here:

Installing elasticdump on Windows

Finally, click on Create to create the index in Kibana. After you have clicked on Create, it will display the various fields present in this index.

Note

If you do not get the options of Time-field name and Create after entering the index name as tweet, it means that the data has not been imported into Elasticsearch.

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Kibana Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon