Getting Data In

What is the order of precedence transforms are applied within a single props.conf stanza?

SplunkTrust
SplunkTrust

Given a couple transforms.conf stanzas that both operate on the host field (index-time manipulation), reading from the host field and then in one case making a new field from part of the host field, and then in the other case modifying the host field, what order does the transforms get applied in?

0 Karma
1 Solution

SplunkTrust
SplunkTrust

In the process of writing this question I found the answer in the transforms.conf spec:

Use a comma-separated list to apply multiple transform stanzas to a single TRANSFORMS
  extraction. Splunk applies them in the list order. For example, this sequence ensures that
  the [yellow] transform stanza gets applied first, then [blue], and then [red]:
        [source::color_logs]
        TRANSFORMS-colorchange = yellow, blue, red

So in summary, the transforms application order is the order that you list them in the props configuration directive.

View solution in original post

SplunkTrust
SplunkTrust

In the process of writing this question I found the answer in the transforms.conf spec:

Use a comma-separated list to apply multiple transform stanzas to a single TRANSFORMS
  extraction. Splunk applies them in the list order. For example, this sequence ensures that
  the [yellow] transform stanza gets applied first, then [blue], and then [red]:
        [source::color_logs]
        TRANSFORMS-colorchange = yellow, blue, red

So in summary, the transforms application order is the order that you list them in the props configuration directive.

View solution in original post

New Member

Small correction, that text is actually from the props.conf spec. Was little confused when I went to the transforms.conf spec and was unable to find it.

0 Karma