Dynamic Dashboards 9.1 Slides
Dynamic Dashboards 9.1 Slides
Course Objectives
• Define token syntax
• Create user inputs
• Create dynamic inputs
• Build cascading inputs
• Create a dynamic drilldown
• Set tokens
• Use dynamic coloring
Course Outline
• Using Tokens
• Adding Inputs
• Using Drilldowns
• Dynamic Visualizations
Topic Objectives
• Define dashboard token syntax
• Describe types of predefined tokens
• Use token filters
Dashboard Tokens
• Syntax
– Use $...$ delimiters to access
the value of a token
• Types
– User defined
– Predefined
▪ Search, environment, inputs,
drilldowns, maps, and
visualizations
index=cafegames sourcetype=access_combined_cg host=$myTok$ status>300
– Default token | timechart count by host
6. $env:page$
token data but not write 8. $env:version$ Current instance's product version: 9.0.0
11. $env:is_lite_free$ Current instance is using a Splunk Light free license: $env:is_lite_free$
12. $env:is_free$ Current instance is using a Splunk Splunk Enterprise free license: $env:is_free$
Default Token
Used when there is no other token value
Clicking on chart A sets the token errorTok Chart B consumes the value The default value for errorTok, the wildcard
with a value for the field log_level of errorTok in its search. asterisk (*), is stored as text in the dashboard
source code, in the defaults section
...
"defaults": {
"dataSources": {
"ds.search"{
"options": {
"queryParameters": {
"latest": "$global_time.latest$",
"earliest": "$global_time.earliest$"
}
}
}
},
"tokens": {
index=_internal sourcetype=splunkd log_level=$errorTok$ "defaults": {
"errorTok": {
| stats count by log_level component | sort -count "value": "*"
}
}
}
},
...
Token Filters
Token filters ensure that you correctly capture a token’s value
Token Filter Description
$token_name|s$ Wrap value in quotes
$token_name|n$ No encode
Topic Objectives
• Name the types of inputs
• Create a dynamic input
• Create cascading inputs
Inputs
• Types: dropdown, multiselect, text,
number, and time range
• Input tokens
– Automatically generated
– Customizable
• Visualization editor
– Customize token name
– Add static values
– Specify default values
– Define the data source
• Source editor
– Configure when input values populate:
Page load, input change, Submit button clicked
Adding Inputs
• Using the visual editor: ...
"inputs": {
"input_global_trp": {
dashboard definition
},
"title": "Name of game:",
"type": "input.text"
1▪ Define the input stanza in the ...
}
as two tokens
"earliest": "$timeTok.earliest$",
"latest": "$timeTok.latest$"
}
}, Time tokens consumed
– .earliest and .latest },
}
"name": "Search1"
by this search
index=cafegames product_name="*"
| dedup product_name
| table product_name
| sort product_name
| outputlookup bcg_products
index=cafegames product_name="*"
| dedup product_name
| table product_name
| sort product_name
| outputlookup bcg_products
Submit Button
• Click to refresh a dashboard after
making input selections ...
Cascading Inputs
• One input sets values for another input
• To each input search, add the other input tokens
– For example, in a three-input cascade:
▪ Input1 search: add token2 and token3 1 2 3
– Add a chart
Topic Objectives
• Identify types of drilldowns
• Create a dynamic drilldown
• Create a contextual drilldown
• Contextual Drilldown
– Set tokens
▪ Pass values as tokens from a user click to
visualizations on the same dashboard
Hiding Elements
• Hide visualizations and A dotted outline for the element
inputs based on the indicates visibility is determined
by data availability
existence of search results
• Requires absolute layout
• Available for the following:
– Charts
– Icons
– Shapes
– Dropdown input
– Multiselect input
2
5
2
1
– Clone a dashboard
– Add a drilldown
Topic Objectives
• Describe static and dynamic coloring
• Add dynamic coloring to a visualization
dynamically colored
3
light colors 6
be dynamically colored
4– Adjust the color palettes and
4
ranges or accept the defaults
Location of Select the data associated Transform and map the selected
your data source, with the visualization. data into the desired format
search, or option
Summary
Documentation
References
• Splunk Community Portal – community.splunk.com
– Answers
– Discussions
– Splunk Trust
– User Groups
– Ideas
• Splunk Blogs – splunk.com/blog/
• Splunk Apps – splunkbase.com
– Apps
– Curated Collections
• Splunk Docs on Twitter – twitter.com/splunkdocs
• Splunk Dev on Twitter – twitter.com/splunkdev
• Splunk on Slack – splk.it/slack
• .conf – conf.splunk.com
Support Programs
• Web
– Documentation: dev.splunk.com and docs.splunk.com
– Wiki: wiki.splunk.com
• Splunk Lantern: Guidance from Splunk experts
– lantern.splunk.com
Learning Paths
Search Expert - Recommended Courses
Free eLearning courses are in blue and courses with an * are present in both
learning paths.
• Introduction to Splunk * • Result Modification
• Using Fields * • Leveraging Lookups and Subsearches
• Scheduling Reports and Alerts • Correlation Analysis
• Visualizations • Search Under the Hood
• Statistical Processing • Multivalue Fields
• Working with Time • Search Optimization *
• Comparing Values
Splunk Mobile
• Free app available to all Splunk
Cloud and Splunk Enterprise
customers
• Analyze data and receive
actionable alerts on-the-go with
mobile-friendly dashboards
• iOS and Android
• See the Product Brief
Splunk Certification
Offerings and Requirements
65 Introduction
Dynamic to Dashboards
Dashboards • 28 September
• 28 September 2023 2023
© 2023 SPLUNK INC.
Splunk Enterprise
App-Specific Offerings
For Splunk Add-Ons
ES ITSI SOAR
Administration Administration Automation
Developer
Prerequisite Certification(s): Splunk Core Certified User Exam Congratulations! You are a...
• None Time to study! We suggest candidates looking to prepare for
this exam complete Fundamentals 1 or the following courses:
Prerequisite Course(s): • Intro to Splunk
• None • Using Fields
• Scheduling Reports and Alerts
• Visualizations
• Statistical Processing
• Working with Time
• Leveraging Lookups and Subsearches
Recommended Next Step
• Search Optimization
• Enriching Data with Lookups • Splunk Core Certified Power User
• Data Models
See here for registration assistance.
Prerequisite Certification(s): Splunk Core Certified Power User Exam Congratulations! You are a...
• None Time to study! We suggest candidates looking to prepare for
this exam complete Fundamentals 2 or the following courses:
Prerequisite Course(s): • Visualizations
• None • Statistical Processing
• Working with Time
• Comparing Values
• Result Modification
• Correlation Analysis
• Search Under the Hood
Recommended Next Steps
• Introduction to Knowledge Objects
• Creating Knowledge Objects • Splunk Core Certified Advanced Power User
• Creating Field Extractions • Splunk Enterprise Certified Admin
• Data Models
• Creating Maps • Splunk Cloud Certified Admin
See here for registration assistance.
Prerequisite Certification(s): Splunk Core Certified Advanced Power User Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We suggest candidates looking to prepare for this exam
complete Fundamentals 3, Creating Dashboards, and Advanced
Searching & Reporting or the following courses:
Prerequisite Course(s):
• Using Fields
• None • Working with Time
• Comparing Values
• Result Modification
• Leveraging Lookups and Subsearches
• Correlation Analysis
• Search Under the Hood
• Multivalue Fields
• Search Optimization Recommended Next Steps
• Creating Field Extractions • Splunk Enterprise Certified Admin
• Enriching Data with Lookups
• Data Models • Splunk Cloud Certified Admin
• Creating Maps
• Introduction to Dashboards
• Dynamic Dashboards
Prerequisite Certification(s): Splunk Cloud Certified Admin Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We suggest candidates looking to
prepare for this exam complete either the Splunk
Prerequisite Course(s): Cloud Administration or the Transitioning to
Splunk Cloud course.
• None
Both courses will equally prepare candidates for
the exam, but are tailored to meet the needs of
the individual based on prior Splunk experience.
Prerequisite Certification(s): Splunk Enterprise Certified Admin Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We suggest candidates looking to
prepare for this exam complete the following courses:
Prerequisite Course(s):
• Splunk System Administration
• None • Splunk Data Administration
Prerequisite Certification(s): Splunk Enterprise Certified Architect Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We require candidates looking to register for
• Splunk Enterprise Certified Admin this exam to complete the following prerequisite courses:
• Architecting Splunk Enterprise Deployments
Prerequisite Course(s): • Troubleshooting Splunk Enterprise
• Splunk Cluster Administration
• Architecting Splunk Enterprise Deployments • Splunk Deployment Practical Lab
• Troubleshooting Splunk Enterprise
Candidates who are Splunk Enterprise Certified Admin
• Splunk Cluster Administration and have completed all of the above courses will automatically
Splunk Deployment Practical Lab receive an exam authorization for the Splunk Enterprise
• Recommended Next Steps
Certified Architect exam within 5-7 business days of receiving
their passing lab results. • Splunk Core Certified Consultant
Prerequisite Certification(s): Splunk Core Certified Consultant Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We require candidates looking to register for this exam to
• Splunk Enterprise Certified Admin complete the following prerequisite courses:
• Splunk Enterprise Certified Architect • Fundamentals 3, Creating Classic Dashboards, Advanced Searching
& Reporting*
• Core Consultant Labs
Prerequisite Course(s): • Services Core Implementation
• Advanced Power User courses or digital badge* Candidates who are Splunk Enterprise Certified Architects and have
• Core Consultant Labs completed all of the above courses must contact [email protected] to
request their Core Consultant exam authorization.
• Indexer Cluster Implementation
• Distributed Search Migration
See here for registration assistance. Recommended Next Steps
• Implementation Fundamentals *These Advanced Power User courses can be replaced with a Splunk Certified
Advanced Power User badge or completion of the following courses: • None
• Architect Implementation 1-3
• Using Fields • Comparing Values
• Services Core Implementation • Creating Field Extractions • Correlation Analysis
• Enriching Data with Lookups • Result Modification
• Data Models • Multivalue Fields
• Search Optimization • Search Under the Hood
• Working with Time • Creating Maps
• Leveraging Lookups and Subsearches • Introduction to Dashboards
• Dynamic Dashboards
74 Dynamic Dashboards • 28 September 2023
© 2023 SPLUNK INC.
Prerequisite Certification(s): Splunk SOAR Certified Automation Congratulations! You are a...
• None Developer Exam
Time to study! We suggest candidates looking to
Prerequisite Course(s): prepare for this exam complete the following courses:
• None • Administering SOAR (Phantom)
• Developing SOAR (Phantom) Playbooks
• Advanced SOAR (Phantom) Implementation
Thank You