Dashboards & Visualizations

What are the possible attributes for the view tag in advanced XML?

lguinn2
Legend

I have seen a number of attributes used with <view>, especially when I generate advanced XML from simple XML.
What is the complete list - and what do they mean?

Tags (2)
0 Karma
1 Solution

lguinn2
Legend

Here is the list that I have - please comment or answer if you have additions / corrections / explanations!

Note that all of these attributes are optional

  • refresh="n" (where n is an integer number of seconds)
    How often to rerun HiddenSearches or get any new HiddenSavedSearch results
  • onunloadCancelJobs= "True" | "False"
    Whether or not to cancel running searches when navigating away from this view
  • autoCancelInterval = "n" (where n is an integer number of seconds)
    Cancels searches that run too long when loading the dashboard
  • isVisible = "True" | "False"
    Controls whether a view appears in the navigation for the app
  • autoRun = "True"
    Automatically run searches when the view loads.
    Do not use .autoRun = False - just leave it out; false is the default. This is the practice of the best XML developers (Like Nick @sideview)
  • template = search.html | dashboard.html
    Identifies the Mako template to use for the view; the template sets a variety of module defaults for the view
  • displayView= charting | flashtimeline | viewName (where viewName is the name of any view you like)
    Identifies the view where subsequent interaction will occur
  • stylesheet="stylesheetName.css" (where stylesheetName.css names your stylesheet file)
    Uses the CSS stylesheet for the view (default directory is appserver/static in the same app)
  • objectMode = SimpleDashboard
    This attribute is "left over" when a view is converted from Simple XML using showsource. This attribute also loads splFormSearch CSS class (you probably don't care and can load it explicitly if needed)

View solution in original post

lguinn2
Legend

Here is the list that I have - please comment or answer if you have additions / corrections / explanations!

Note that all of these attributes are optional

  • refresh="n" (where n is an integer number of seconds)
    How often to rerun HiddenSearches or get any new HiddenSavedSearch results
  • onunloadCancelJobs= "True" | "False"
    Whether or not to cancel running searches when navigating away from this view
  • autoCancelInterval = "n" (where n is an integer number of seconds)
    Cancels searches that run too long when loading the dashboard
  • isVisible = "True" | "False"
    Controls whether a view appears in the navigation for the app
  • autoRun = "True"
    Automatically run searches when the view loads.
    Do not use .autoRun = False - just leave it out; false is the default. This is the practice of the best XML developers (Like Nick @sideview)
  • template = search.html | dashboard.html
    Identifies the Mako template to use for the view; the template sets a variety of module defaults for the view
  • displayView= charting | flashtimeline | viewName (where viewName is the name of any view you like)
    Identifies the view where subsequent interaction will occur
  • stylesheet="stylesheetName.css" (where stylesheetName.css names your stylesheet file)
    Uses the CSS stylesheet for the view (default directory is appserver/static in the same app)
  • objectMode = SimpleDashboard
    This attribute is "left over" when a view is converted from Simple XML using showsource. This attribute also loads splFormSearch CSS class (you probably don't care and can load it explicitly if needed)

lguinn2
Legend

Nick Mealy's answer to this question on another post is quite good and has a few more details: http://splunk-base.splunk.com/answers/95177/view-tag-parameters-list

0 Karma

chinmayc469
Explorer

Can we add hideSplunkBar attibute to the view tag? I want to add this tag for the datasets view

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...