<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21481#M3532</link>
    <description>&lt;P&gt;...that relate to props.conf but not to transforms.conf? This sounds very much like a constructed problem.&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2013 18:07:58 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-05-03T18:07:58Z</dc:date>
    <item>
      <title>transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21475#M3526</link>
      <description>&lt;P&gt;In the transforms.conf file, how do I support the alternatives on the REGEX line with the&lt;BR /&gt;
 corresponding FORMAT line group’s numbering?  See the example attempt below: &lt;BR /&gt;
 I can have either 4 groups or 6 groups on the REGEX line &lt;BR /&gt;
(that’s why there is a pipe "|" there; &lt;BR /&gt;
InComingList SOURCE_KEY could have either 4 groups or 6 groups).&lt;BR /&gt;
Corresponding FORMAT line then need to be able to: either support 4 groups’ matches &lt;BR /&gt;
or 6 groups’ matches.  How to do that? &lt;BR /&gt;
How to number the groups - increase the numbers or restart-the-numbering again &lt;BR /&gt;
for the part after the pipe?&lt;BR /&gt;&lt;BR /&gt;
[Unfortunately transforms.conf specification does not support &lt;BR /&gt;
conditional-logic presently].&lt;BR /&gt;&lt;BR /&gt;
Any quick insights will be deeply appreciated!&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;[testTransformPara]

REGEX=((\w+?)_(\w+)=(\d+):(\d+)) | ((\w+?)_(\w+)=(\d+):(\d+)@(\w+)=(\d+))

FORMAT = (FIELD1::$1 FIELD2::$2 FIELD3::$3 FIELD4::$4) | (FIELD1::$1 FIELD2::$2 FIELD3::$3 FIELD4::$4 FIELD5::$5 FIELD4::$6)

SOURCE_KEY = InComingList

MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;</description>
      <pubDate>Wed, 01 May 2013 17:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21475#M3526</guid>
      <dc:creator>SonnyB</dc:creator>
      <dc:date>2013-05-01T17:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21476#M3527</link>
      <description>&lt;P&gt;Can you give some data samples.  There may be a better approach.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 22:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21476#M3527</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-05-01T22:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21477#M3528</link>
      <description>&lt;P&gt;Why not just have two separate transforms? Like you say transforms.conf does not support this kind of conditional extraction and I think it's likely it never will either since you can solve the problem by using separate transforms.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 06:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21477#M3528</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-02T06:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21478#M3529</link>
      <description>&lt;P&gt;Ayn:  If there is a constraint (say, for some reason), that the corresponding props.conf can not be changed.  So, the new transforms' para creation is not possible.  In that case, we have to design the alternatives of the REGEX and FORMAT in the existing paragraph expressions only. What is the formal guideline from Splunk on this, if it exists.  Could not find any direct examples/discussion of this topic yet.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 17:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21478#M3529</guid>
      <dc:creator>SonnyB</dc:creator>
      <dc:date>2013-05-03T17:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21479#M3530</link>
      <description>&lt;P&gt;Could you give me a reason why you wouldn't be able to change/add props settings?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 17:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21479#M3530</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-03T17:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21480#M3531</link>
      <description>&lt;P&gt;some frozen-code issues etc.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 17:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21480#M3531</guid>
      <dc:creator>SonnyB</dc:creator>
      <dc:date>2013-05-03T17:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21481#M3532</link>
      <description>&lt;P&gt;...that relate to props.conf but not to transforms.conf? This sounds very much like a constructed problem.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 18:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21481#M3532</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-03T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21482#M3533</link>
      <description>&lt;P&gt;I agree with Ayn here.  The proper solution is multiple &lt;CODE&gt;transforms.conf&lt;/CODE&gt; stanzas with multiple references to them within &lt;CODE&gt;props.conf&lt;/CODE&gt;.  If your change management / code freeze processes are such that you can change one Splunk config file but not a related Splunk config file, perhaps your processes are not aligned with reality in a live Splunk deployment.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 19:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21482#M3533</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2013-05-03T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21483#M3534</link>
      <description>&lt;P&gt;Ayn: Can't get into more specifics here, but, imagine a scenario, where you already have thousands of lines of sourcetypes defined in props.conf and if any of the existing paras are changed, that then mandates a regression testing cycle for all the related clients. If the props is not touched in this fashion, then this dilemma is circumvented. transforms.conf's existing fields are matched perfectly and remain unperturbed. Some optional new fields are added, that are then tested out for the new client-apps.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 21:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21483#M3534</guid>
      <dc:creator>SonnyB</dc:creator>
      <dc:date>2013-05-03T21:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21484#M3535</link>
      <description>&lt;P&gt;Refer to dwaddle's comments - if you have that complicated of a process for changing props.conf but for some reason not transforms.conf, you have other problems to solve than this.&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2013 07:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21484#M3535</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-04T07:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf – supporting alternatives in REGEX and numbering the alternative-groups in the FORMAT lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21485#M3536</link>
      <description>&lt;P&gt;Also, "better practices" (I would say "best" but that is subjective) suggest that you build context-specific apps for your various inputs and their processing.  If you have a single &lt;CODE&gt;props.conf&lt;/CODE&gt; with 'thousands of lines' in it, then you may want to consider breaking those down into different apps and managing your revisions in smaller units.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2013 16:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-conf-supporting-alternatives-in-REGEX-and-numbering/m-p/21485#M3536</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2013-05-06T16:49:22Z</dc:date>
    </item>
  </channel>
</rss>

