Professional Documents
Culture Documents
Dev 1141
Dev 1141
Splunk UI and
React
Visualizations
© 2019 SPLUNK INC.
Forward- During the course of this presentation, we may make forward‐looking statements
regarding future events or plans of the company. We caution you that such statements
Looking reflect our current expectations and estimates based on factors currently known to us
and that actual events or results may differ materially. The forward-looking statements
Statements made in the this presentation are being made as of the time and date of its live
presentation. If reviewed after its live presentation, it may not contain current or
accurate information. We do not assume any obligation to update
any forward‐looking statements made herein.
In addition, any information about our roadmap outlines our general product direction
and is subject to change at any time without notice. It is for informational purposes only,
and shall not be incorporated into any contract or other commitment. Splunk undertakes
no obligation either to develop the features or functionalities described or to include any
such feature or functionality in a future release.
Splunk, Splunk>, Turn Data Into Doing, The Engine for Machine Data, Splunk Cloud,
Splunk Light and SPL are trademarks and registered trademarks of Splunk Inc. in the
United States and other countries. All other brand names, product names, or
trademarks belong to their respective owners. © 2019 Splunk Inc. All rights reserved.
© 2019 SPLUNK INC.
Overview
• What we’re going to build / The End Result: 1min
• How this would have been done in the old world: 1min
• Quick reminder about React &
styled-components: 1min
• The three primary building blocks that
we use for our app: 5-10min
• Splunk UI intro
• Dashboard Framework
• React Visualizations
• UI Deconstruction: 1min
• Roughly associate the responsibilities
of packages to deconstructed UI: 1min
• Setup: 1min
• classic folder structure
• The Main View: 5-10min
© 2019 SPLUNK INC.
1. Demo
4. Bonus
© 2019 SPLUNK INC.
Demo
© 2019 SPLUNK INC.
Overview
Enterprise The New Way
• SimpleXML Dashboard • React Single Page App
• Custom Javascript Extension • Packaged as web app
• Hide the Chrome • Component libraries that make it easy
• SplunkJS to use Splunk services
• Packaged as Splunk App
© 2019 SPLUNK INC.
@splunk/dashboard-core
Dashboard Framework
…
@splunk/react-visualizations
React Visualizations
…
© 2019 SPLUNK INC.
Splunk UI
What’s Splunk UI
• A front-end toolkit
Why Splunk UI
• Documented
• Isolated
• Accessible
• Tested
• Versioned
Where to use
© 2019 SPLUNK INC.
Dashboard Framework
{
dataSources: {...},
visualizations:{...},
layout: {...}
}
© 2019 SPLUNK INC.
DDISDO
Dashboard Definition In Shiny Dashboard Out
<DashboardCore>
React Visualizations
React Visualizations
Data Props Customization Props
App Architecture
Main View
Dashboard
Modal View
Table Visualization
© 2019 SPLUNK INC.
Setup
© 2019 SPLUNK INC.
Set-up
Recap • @splunk/react-ui
• babel-polyfill
• @splunk/dashboard-presets
© 2019 SPLUNK INC.
Connect the
Components
© 2019 SPLUNK INC.
3.
© 2019 SPLUNK INC.
Source Code:
https://github.com/splunk/customized-app-conf19
Dashboard Examples:
https://github.com/splunk/dashboard-conf19-example
s
Thank
You
!Go to the .conf19 mobile app to