Getting Data In

Maximum number of attribute $n in transforms.conf

CurryPan
Communicator

Hello,
the FORMAT option in transforms.conf can use $n to specify the output of each REGEX match.
(https://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf)

FORMAT = <string>
(* snip *)
* FORMAT for index-time extractions:
* Use $n (for example $1, $2, etc) to specify the output of each REGE match.

Is there a hard limit on the maximum number of attribute $n in transforms.conf?

CurryPan
Communicator

There is a hard limit of 65535 imposed by PCRE2 library:

There is no limit to the number of parenthesized subpatterns, but there can be no more than 65535 capturing subpatterns.
(http://www.pcre.org/current/doc/html/pcre2limits.html)

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...