Getting Data In

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

muebel
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?

1 Solution

muebel
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

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

tasqn
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
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...