
Add tables to a dashboard
Tables are an easy way to visualize your data. In this scenario, you create two tables using different search syntax.
Use the table command to generate a table
To build a table, you can use a table
command. The table
command is a generating command. Generating commands fetch information from the indexes, without any transformations. In this scenario, make a table of your event type, source type and hour data to visualize your activity.
- Click Search on the Splunk Light bar.
- Type the following into the search bar.
This lists all events withinindex=os /var/log sourcetype!=ps
/var/log
that are not of source type ps. - To add fields to the Selected Fields, click All Fields.
- Select date_hour and event type. These fields are now included in the search results.
- Type the following into the search bar.
This displays a table with the columns in the same order as they are typed.index=os /var/log sourcetype!=ps | table eventtype sourcetype date_hour | sort -date_hour
- Click Save As and click Dashboard Panel.
- Add your table to your existing dashboard.
- Name your panel Event and source type by time.
- Click Save.
- To view your changes, click View Dashboard.
Create a table from a search
You can create a table using a series of pipes. In this scenario, create a table of process counts by user.
- Click Search on the Splunk Light bar.
- Type the following into the search bar.
This creates a table of users and process counts, organized by highest process count.sourcetype=ps | stats count(user) by user | sort -count(user)
- Click Save As, and click Dashboard Panel.
- Add your table to your existing dashboard.
- Name your panel Process counts by user.
- Click Save.
- To view your changes, click View Dashboard.
Your dashboard now contains five panels: two prebuilt panels, one powered by an inline search, and two table panels.
PREVIOUS Add a dashboard panel from a search |
NEXT Add a single value panel to a dashboard |
This documentation applies to the following versions of Splunk® Light (Legacy): 7.3.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.3.6
Feedback submitted, thanks!