Creating Dashboards Flashcards
What is the difference between a dashboard and a form?
Form is a dashboard with at least one user input
What components do views typically include?
XML, HTML, CSS/JavaScript
How is user input stored in a form?
Stored as a token
What is the root element of a dashboard and form XML?
< dashboard >
< form >
What XML tags surround a dashboard title?
< label > < /label >
What XML tags surround input sections in a Form dashboard?
< fieldset >
What XML tags are used to define the beginning and ending of input time?
< earliest > $time_tok.earliest$
< latest > $time_tok.latest$
What are the options for panel visualization elements?
Chart, event, map, single value, table, custom viz, HTML
What are the different types of panels?
Report, Inline, Prebuilt
Which panel type has an embedded search query?
Inline: < search > < query > search terms… < /query >
Which panel type has a search reference?
Report: < search ref=”Report Name” >
Which panel type has a panel reference?
Prebuilt: < row > < panel ref=“prebuilt name” >
What troubleshooting step can you take to verify tokens are set with expected values?
Create html to show tokens on panel
Use showtokens.js script
What XML tag should you wrap around special characters to ensure literal meaning?
< ![CDATA[ text ]] >
What should you use to add optimizations and logic to your dashboard?
Simple XML
What should you use to create or modify basic dashboards?
Dashboard Editor
When should you use simple XML Extensions?
To add custom stylesheets and logic to your dashboard
When should you get stakeholder signoff when creating dashboards?
After planning with stakeholders, prototyping and adding interactivity, and before improving performance and customizing
What are the primary transforming commands?
chart, timechart, stats, rare and top
How does adding a form input change the root element of the XML?
Changes root element from < dashboard > to < form >
What is the input value of a form input?
User defined token
When can input values populate on a form?
Choose between page load, input change, clicking submit
Where are tokens defined in the XML?
After < fieldset > < input type=… token=”token_name”>
Can you use a lookup to define inputs to a dropdown input type?
Yes, under < input… > < search > < query > | inputlookup look_name
Improves dashboard efficiency more so than running a search
How can tokens impact form behavior?
drilldowns, event handlers, conditional behavior, show/hide panels
What is a cascading input?
Use the selection of one input to reduce or set value of another input
What is used to reset a menu when another menu is changed?
Event handler
What tags define what field values will populate the dropdown?
< fieldforlabel >
< fieldforvalue >
What is the purpose of token filters?
Ensure that you correctly capture a token’s value. Ex: $tok_name|s |h |u |n
What token filter adds quotation around the returned value?
|s
What are global environment tokens?
Tokens providing information about the splunk environment and users all starting with $env:attribute_name$
What XML aspect configures appearance and behavior of dashboard and forms?
Element Attributes: onunloadcanceljobs script, rejects, depends, id,
How do you manage chart customization in the XML editor?
Through XML options:
< option name=”charting.optionname” > value < /option >
What XML option allows use of hexadecimal color values defined for each field?
charting.fieldColors Ex defining 2 specific fields: < option name=”charting.fieldColors” > {“ARCADE”:color1, “STRATEGY”:color2} < /option >
What can event annotation be used for?
< search type=“annotation” >
Annotate a time series viz with values from another search/lookup. Display a callout, filter events for matching charts time range