Getting Data In

What's the difference between these two transforms stanzas in props.conf?

ankithreddy777
Contributor

May I know the difference between writing transforms stanza in props.conf in different ways

Ex:

transforms-xyz = transforms1, transforms2

[in this case to my knowledge transforms1 executed first and the remaining events go to transforms2]

AND

transforms-xyz=transforms1
tranforms-abc=transforms2

0 Karma

jkat54
SplunkTrust
SplunkTrust
TRANSFORMS-<class> = <transform_stanza_name>, <transform_stanza_name2>,...
...
* 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

Otherwise it is ASCII order by the classname as in uppercase A comes before uppercase Z and lowercase a comes after uppercase Z. It's handy to reference an ASCII table for this:

https://duckduckgo.com/?q=ascii+table&atb=v38-2&ia=answer&iax=1

the lower the decimal value of the ASCII character, the higher priority the class will have in Splunk.

http://docs.splunk.com/Documentation/Splunk/6.6.3/Admin/Wheretofindtheconfigurationfiles#How_Splunk_...

jkat54
SplunkTrust
SplunkTrust

So in a way it's probably better practice using the comma separation. I have a habit of doing it like this though:

TRANSFORMS-aaa=
TRANSFORMS-bbb=
...
TRANSFORMS-zzz=

This way someone else can come behind me and decide they need to transform before all my rules with

TRANSFORMS-AAA

Or after my rules with more z's

TRANSFORMS-zzzz

0 Karma

woodcock
Esteemed Legend

I always use CSV; it clearly shows the order and changing the order or inserting in the middle is trivial.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...