Developing Dashboards, Views, and Apps for Splunk Web

 


Step 2: Add rows

Step 2: Add rows

Dashboards contain rows. Each row can contain up to three panels. Each panel typically contains a single search and displays a visualization of that search. However, you can group two or more panel visualizations into a single column within a row.

This step shows how to add rows and also how to add rows that contain panel groups. "Step 3: Add Panels" shows how to add panels to the rows.

Add rows to a dashboard

Add two rows to a dashboard using the <row> tag. Rows can accommodate up to three panels.

<dashboard>
    <label>My dashboard</label>
    <row>
     . . .
    <!-- Up to three panels -->
     . . .
    </row>
    <row>
     . . .
    <!-- Up to three panels -->
     . . .
    </row>
</dashboard>

Create a panel group for a row

Group panels together within a row by adding a grouping attribute to the <row> tag. The following example groups two panels into a single column:

<dashboard>
    <label>My dashboard</label>
    <row grouping="2">
    . . .
    <!--The two panels to be grouped-->
    . . .
    </row>
</dashboard>

You can group panels into columns on the left or right sides within a single row. The following example creates a single row of panels, separated into two columns, with 3 panels grouped in the left column and 2 panels grouped in the right column:

<dashboard>
    <label>My dashboard</label>
    <row grouping="3,2">
    . . .
    <!-- The five panels to be grouped into two columns-->
    . . .
    </row>
</dashboard>
Note: Panel groups affect the Splunk Dashboard Editor. The Dashboard Editor cannot add or edit panels for a dashboard containing grouped panels. All additional edits must be done in the underlying XML code.

This documentation applies to the following versions of Splunk: 4.3 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.