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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...