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 Learning Splunk Web Framework
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Splunk Web Framework

Learning Splunk Web Framework

By : Sesto
4 (2)
close
close
Learning Splunk Web Framework

Learning Splunk Web Framework

4 (2)
By: Sesto

Overview of this book

Building rich applications on the Web using Splunk is now simpler than ever before with the Splunk Web Framework. It empowers developers to build their own web applications with custom dashboards, tables, charts, form searches, and other functionalities in the datasets at their disposal. The book will start with the fundamentals of the Splunk Web Framework, teaching you the secrets of building interesting and user-friendly applications. In the first application, you will learn to analyze and monitor traffic hitting the NASA website and learn to create dashboards for it. You will then learn additional, and more detailed, techniques to enhance the functionalities of the app such as dashboards and forms, editing simple XML, using simple XML extensions, tokens, post-process searches, dynamic drill-downs, the Splunk Web Framework and REST API, and much more. The second app will use historical stock market data and will create custom dashboards using Splunk Web Framework; the book will now cover important topics such as creating HTML dashboards, enhancing the visual appeal of the app using CSS, and moving your app with SplunkJS. The book will provide different and interesting examples instead of the usual “Log, Index, Search, and Graph” so that Splunk will be the first tool readers think of to resolve a problem.
Table of Contents (10 chapters)
close
close

Getting started with the SimpleXML code

We are going to dive straight in and create another dashboard with one chart. We will create it using the Splunk web interface and then be able to view the underlying code that is created as SimpleXML:

  1. Let's start by accessing our NASA squid and web data app and click on the Dashboards menu.
  2. We want to create a new dashboard for this exercise, so we click on the Create New Dashboard button.
  3. Set the Title as SimpleXMLDashboard and click on the Create Dashboard button.

In this example, we want to search for all the requests that have been made to the NASA website for movies from educational domains, using the following as our search:

index=main sourcetype=NASASquidLogs | search movies | search edu | top 5 From

From within your new SimpleXMLDashboard:

  1. Click on Edit and select Edit Panels.
  2. Click on the Add Panel button and select New, and then choose Bar for a bar chart.
  3. Set the details of the chart to the following values:
    • Content Title: Education Usage...
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.
Learning Splunk Web Framework
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options 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