> ## Documentation Index
> Fetch the complete documentation index at: https://splunk-training.ipoint-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lab 19: Macros

> Hands-on lab · 45 min · Module 23

Save a product sales search as a macro, then write a macro that takes an argument.

[Launch Lab 19 in the IP Lab Portal](https://labs.intellectualpoint.com/labs/splunk-lab-19-macros)

## What you will do

1. Save a product sales search as a macro
2. Run it with backticks
3. Write a macro that takes an argument

## Before you start

Time
45 minutes
*On your own Splunk lab machine*

Role
admin
*Every lab signs you in as admin*

Module
Module 23: Creating and Using Macros
*SPK-102*

* Click **Launch Lab 19 in the IP Lab Portal** to open the lab page, then click **Launch** to start your machine.
* Starting a lab counts as an attempt. Tick off steps in the lab guide to track your progress.
* The course data is `access_30DAY.log`, `linux_s_30DAY.log`, `db_audit_30DAY.csv` and `products.csv`.
* Review the slides in [Module 23 Material](https://splunk-training.ipoint-labs.com/spk-102/module-23/material.md) before you start.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.