Admin Manual

 


About the Splunk Admin Manual
How Splunk Works
Transaction Types

Transaction types via configuration files

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Contents

Transaction types via configuration files

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.


Configuration

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>]

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 = <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.

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 , 3.4.14 View the Article History for its revisions.


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

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.