Splunk Fundamentals 1 Lab Exercises: Lab Module 11 - Using Pivot
Splunk Fundamentals 1 Lab Exercises: Lab Module 11 - Using Pivot
NOTE: Lab work will be done on your personal computer or virtual machine, no lab environment is
provided. We suggest you DO NOT do the lab work on your production environment.
The lab instructions refer to these source types by the types of data they represent:
Type Sourcetype Fields of interest
Web Application access_combined_wcookie action, bytes, categoryId, clientip,
itemId, JSESSIONID, productId,
referer, referer_domain, status,
useragent, file
NOTE: This lab document has two sections. The first section includes the instructions without answers.
The second section includes instructions with the expected search string (answer) in red.
Description
In this lab, you will be building a report using the Pivot interface.
Steps
Scenario: The CFO loved the simple dashboard you created, but would like to add a report of where our
customers are coming from. She would like to know what items users added to the shopping
cart, and where those users originated from.
Navigate to the Search view. (If you are in the Home app, click Search & Reporting from the column on
the left side of the screen. You can also access the Search view by clicking the Search menu option on
the green bar at the top of the screen.)
NOTE: For this course, you will be searching across all time using the main index. This is NOT a best
practice in a production environment, but needed for these labs due to the nature of the limited
dataset.
Enter in a search that returns all web application events for all time.
Click on the Visualization tab to see three icons: Pivot, Quick Reports, and Search Command.
Example:
Under Filters, click , to open the filter selector, and select file from the Fields list.
Select cart.do from the match menu and click Add To Table.
Example:
Under Split Rows, click , to open the split rows selector, and then click productID.
For the Label, enter Product Added To Cart.
Keep other settings at their default values, and click Add To Table.
Under Split Columns, click to open the split columns selector, and then click referrer_domain.
Keep other settings at their default values, and click Add To Table.
Notice that a large amount of the web traffic is coming from the buttercupgames.com domain. We will
want to filter these out.
Example Results:
Task 3: Add a panel to a dashboard from a pivot, and create a Data Model.
Use the Filter and Split tools to explore your data in the pivot interface.
NOTE: Lab work will be done on your personal computer or virtual machine, no lab environment is
provided. We suggest you DO NOT do the lab work on your production environment.
The lab instructions refer to these source types by the types of data they represent:
Type Sourcetype Fields of interest
Web Application access_combined_wcookie action, bytes, categoryId, clientip,
itemId, JSESSIONID, productId,
referer, referer_domain, status,
useragent, file
NOTE: This lab document has two sections. The first section includes the instructions without answers.
The second section includes instructions with the expected search string (answer) in red.
Description
In this lab, you will be building a report using the Pivot interface.
Steps
Scenario: The CFO loved the simple dashboard you created, but would like to add a report of where our
customers are coming from. She would like to know what items users added to the shopping
cart, and where those users originated from.
Navigate to the Search view. (If you are in the Home app, click Search & Reporting from the column on
the left side of the screen. You can also access the Search view by clicking the Search menu option on
the green bar at the top of the screen.)
NOTE: For this course, you will be searching across all time using the main index. This is NOT a best
practice in a production environment, but needed for these labs due to the nature of the limited
dataset.
Enter in a search that returns all web application events for all time.
(index=main sourcetype=access_combined_wcookie)
Click on the Visualization tab to see three icons: Pivot, Quick Reports, and Search Command.
Under Filters, click , to open the filter selector, and select file from the Fields list.
Select cart.do from the match menu and click Add To Table.
Example:
Under Split Rows, click , to open the split rows selector, and then click productID.
For the Label, enter Product Added To Cart.
Keep other settings at their default values, and click Add To Table.
Under Split Columns, click to open the split columns selector, and then click referrer_domain.
Keep other settings at their default values, and click Add To Table.
Notice that a large amount of the web traffic is coming from the buttercupgames.com domain. We will
want to filter these out.
Under Filters, click , to open the filter selector, and select referrer_domain from the Fields list.
Select is not and http://www.buttercupgames.com from the match menu.
Example:
Task 3: Add a panel to a dashboard from a pivot, and create a Data Model.
Use the Filter and Split tools to explore your data in the pivot interface.