Splunk® Enterprise

Knowledge Manager Manual

Download manual as PDF

Splunk version 4.x reached its End of Life on October 1, 2013. Please see the migration information.
This documentation does not apply to the most recent version of Splunk. Click here for the latest version.
Download topic as PDF

Design macro searches

To simplify managing your searches, you can create saved searches that include macros, which are parametrized chunks of a search. These search macros can by any part of a search, such as an eval statement or search term, and do not need to be a complete command. With macros, you can reuse chunks of a search in multiple places, whether its a saved search or an ad hoc search. You can also specify whether or not the search macros take any or no arguments.

Note: Form searches also use search macros, but include a graphical user interface component.

Configure and manage search macros

You can view, edit, and create search macros using Splunk Web's Manager > Advanced Search > Search macros page and macros.conf. For more information, see "Create and use search macros" in the User Manual and the macros.conf reference in the Admin Manual.

PREVIOUS
Configure the priority of scheduled searches
  NEXT
Design form searches

This documentation applies to the following versions of Splunk® Enterprise: 4.3, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7


Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

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

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters