Book Image

Learning Splunk Web Framework

By : Vincent Sesto
Book Image

Learning Splunk Web Framework

By: Vincent 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 (15 chapters)
Learning Splunk Web Framework
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Adding animation to Splunk dashboards


I use the term animation loosely as we are not going to be developing the next Pixar epic, but we will be working within our dashboard and enhancing the way that our dashboard panels work with the user's mouse clicks. We are going to continue working on the Stock Market Historical Overview HTML dashboard that we created in the previous chapter. We are currently displaying only two graphs on the page, but we will add JavaScript that will allow us to collapse the Yahoo! data so we can focus more on our Splunk stock market data. We will also add a table, but instead of just offering values, we add extra visual effects to allow it to switch between a row value and a graph.

If you have not done so already, you should move your HTML dashboard into the default directory of the Splunk App.

  1. Log into your development server and move into the html directory where our dashboards are stored:

    cd $SPLUNK_HOME/etc/apps/stock_market/default/data/ui/html/
    
  2. We want to make...