This documentation does not apply to the most recent version of Splunk.
This documentation applies to the following versions of Splunk: 3.3 , 3.3.1 , 3.3.2 , 3.3.3 , 3.3.4 , 3.4 , 3.4.1 , 3.4.2 , 3.4.3 , 3.4.5 , 3.4.6 , 3.4.8 , 3.4.9 , 3.4.10 , 3.4.11 , 3.4.12 , 3.4.13
Any series of events can be turned into a transaction type. Read more about use cases in how transaction types work.
You can create transaction types via transactiontypes.conf. See below for configuration details. For more information on configuration files in general, see how configuration files work.
1. Create a transactiontypes.conf file in $SPLUNK_HOME/etc/system/local/, or your own custom application directory in $SPLUNK_HOME/etc/apps/.
2. Define transactions by creating a stanza and listing specifications for each transaction within its stanza. Use the following attributes:
[<transactiontype>] maxspan = [<integer> s|m|h|d] maxpause = [<integer> s|m|h|d] maxrepeats = <integer> fields = <comma-separated list of fields exclusive = <true | false> aliases = <comma-separated list of alias=event_type> pattern = <ordered pattern of named aliases> match = closest
[<TRANSACTIONTYPE>]
[<TRANSACTIONTYPE>], to search for the transaction in Splunk Web.
maxspan = [<integer> s|m|h|d]
maxpause = [<integer> s|m|h|d]
maxrepeats = <integer>
fields = <comma-separated list of fields>
exclusive = <true | false>
url,cookie, and exclusive=false, then an event with a 'cookie', but not a 'url' value could be in multiple transactions that share the same 'cookie', but have different URLs.
aliases = <comma-separated list of alias=event_type>
A=login, B=purchase, C=logout means "A" is equal to eventtype=login, "B" to "purchase", "C" to "logout".
pattern = <regular expression-like pattern>
match = closest
3. Use the transaction command in Splunk Web to call your defined transaction (by its transaction type name). You can override configuration specifics during search. Read more about transaction search.