<?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: Transformations and props behavior in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659304#M111522</link>
    <description>&lt;P&gt;In the example, the lexicographic order will process the transformations in the same order, as TRANSFORMS-1 comes before TRANSFORMS-2 (and so on).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 14:03:58 GMT</pubDate>
    <dc:creator>cmlombardo</dc:creator>
    <dc:date>2023-10-02T14:03:58Z</dc:date>
    <item>
      <title>Transformations and props behavior</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659286#M111510</link>
      <description>&lt;P&gt;I would like to understand better how transformations work, in terms of priority and data flow.&lt;/P&gt;&lt;P&gt;Let's say I have 3 transformations in place, that I want to apply to a sourcetype (e.g. "test"):&lt;/P&gt;&lt;P&gt;[tr1]&lt;/P&gt;&lt;P&gt;[tr2]&lt;/P&gt;&lt;P&gt;[tr3]&lt;/P&gt;&lt;P&gt;Can somebody explain to me what the difference is (if any) between these 2 props.conf:&lt;/P&gt;&lt;P&gt;----1----&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
TRANSFORMS-1=tr1
TRANSFORMS-2=tr2
TRANSFORMS-3=tr3&lt;/LI-CODE&gt;&lt;P&gt;---2----&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
TRANSFORMS-1=tr1,tr2,tr3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the resulting data transformation the same on both cases?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 13:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659286#M111510</guid>
      <dc:creator>cmlombardo</dc:creator>
      <dc:date>2023-10-02T13:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations and props behavior</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659288#M111512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/122244"&gt;@cmlombardo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm not sure (someone else could&amp;nbsp;contradict me!) but they should be the same thing.&lt;/P&gt;&lt;P&gt;Anyway, I prefer the second solution to be more sure about the sequence of transformation application.&lt;/P&gt;&lt;P&gt;because the execution sequence could be important.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 13:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659288#M111512</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-10-02T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations and props behavior</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659294#M111516</link>
      <description>&lt;P&gt;As I understand it, transforms listed separately are processed in lexicographical order whereas those listed in a single &lt;FONT face="courier new,courier"&gt;TRANSFORMS&lt;/FONT&gt; setting are processed in the order given.&lt;/P&gt;&lt;P&gt;IOW, this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
TRANSFORMS-3=tr3
TRANSFORMS-1=tr1
TRANSFORMS-2=tr2&lt;/LI-CODE&gt;&lt;P&gt;is the same as this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
TRANSFORMS-1=tr1
TRANSFORMS-2=tr2
TRANSFORMS-3=tr3&lt;/LI-CODE&gt;&lt;P&gt;But this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TRANSFORMS-1=tr3,tr1,tr2&lt;/LI-CODE&gt;&lt;P&gt;will process the transforms in the listed order.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 13:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659294#M111516</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-02T13:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations and props behavior</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659300#M111519</link>
      <description>&lt;P&gt;So, if they are processed in lexicographical order, then the result should be the same once the data passes through my 2 transformation examples.&lt;/P&gt;&lt;P&gt;Best practice, as I understand it, is to list the transformations in the second form&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TRANFORMS=tr1,tr2,tr3&lt;/LI-CODE&gt;&lt;P&gt;so that there is no doubt on the order they are processed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 13:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659300#M111519</guid>
      <dc:creator>cmlombardo</dc:creator>
      <dc:date>2023-10-02T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations and props behavior</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659302#M111520</link>
      <description>&lt;P&gt;It's not necessarily true that the data will be the same after each example.&amp;nbsp; In some (many/most?) cases, the order of transformations could be significant and is why I recommend using the second format.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 13:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659302#M111520</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-02T13:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations and props behavior</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659303#M111521</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/122244"&gt;@cmlombardo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the order of transformation is relevant!&lt;/P&gt;&lt;P&gt;only for example, if you read at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&amp;nbsp;, if you want to keep some events and discard the rest, you have to executebefore the transofrmation on all the events (regex=.) and then the tranformation of a part of data, if you change the order, the tranformation doesn't work.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 14:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659303#M111521</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-10-02T14:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations and props behavior</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659304#M111522</link>
      <description>&lt;P&gt;In the example, the lexicographic order will process the transformations in the same order, as TRANSFORMS-1 comes before TRANSFORMS-2 (and so on).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 14:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transformations-and-props-behavior/m-p/659304#M111522</guid>
      <dc:creator>cmlombardo</dc:creator>
      <dc:date>2023-10-02T14:03:58Z</dc:date>
    </item>
  </channel>
</rss>

