<?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: Configure different index time transformations for different outputs | Heavy Forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603388#M104983</link>
    <description>&lt;P&gt;You could use CLONE_SOURCETYPE to do a "copy" of your event. It would have to work something like that.&lt;/P&gt;&lt;P&gt;1. Your input provides splunk with an event of a sourcetype - let's say - microsoft:cloud&lt;/P&gt;&lt;P&gt;2. You do a CLONE_SOURCETYPE to a temporary:sourcetype&lt;/P&gt;&lt;P&gt;3a. The microsoft:cloud event goes through all the normal ingest steps and you route it to output1 (or simply don't touch anything if it's your default output&lt;/P&gt;&lt;P&gt;3b. The temporary:sourcetype gets reinserted into the queue, passes all appropriate transforms and at the end is routed to output2 and you rewrite the sourcetype field back to microsoft:cloud.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 13:51:08 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-06-27T13:51:08Z</dc:date>
    <item>
      <title>Configure different index time transformations for different outputs | Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603379#M104980</link>
      <description>&lt;P&gt;Hello Splunker,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I'm currently working on a new use case and need some helps&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I'm working on a HF receiving Microsoft Cloud Logs (with &lt;A href="https://docs.splunk.com/Documentation/AddOns/released/MSCloudServices" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/AddOns/released/MSCloudServices&lt;/A&gt;) and I &lt;STRONG&gt;would like to forwards those logs to two differents TCP output&lt;/STRONG&gt; &lt;STRONG&gt;(Splunk indexers),&lt;/STRONG&gt; &lt;STRONG&gt;one with some fields anonymized, and the other without any index time transformation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here is a schema to help you understand my problem :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GaetanVP_0-1656334535271.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20306i1983CA84E1EBBB10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GaetanVP_0-1656334535271.png" alt="GaetanVP_0-1656334535271.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;My thoughts :&lt;/EM&gt;&lt;BR /&gt;I currently have a inputs.conf configured on my HF to receive the logs from MS Cloud (with sourcetype set to mscs:azure:eventhub, I think it's compulsory to keep this sourcetype)&lt;BR /&gt;Then I created props.conf &amp;amp; transforms.conf but should I put two TRANSFORMS-&amp;lt;class&amp;gt; in order to have two differents transforms depending on the destination ?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My props.conf :&lt;/EM&gt;&lt;BR /&gt;[mscs:azure:eventhub]&lt;BR /&gt;TRANSFORMS-anonymize = user-anonymizer&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My transforms.conf :&lt;/EM&gt;&lt;BR /&gt;[user-anonymizer]&lt;BR /&gt;REGEX = ^(.*?)"\[{\\"UserName\\":[^,]*(.*)&lt;BR /&gt;FORMAT = $1"###"$2&lt;BR /&gt;DEST_KEY = _raw&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;Gaétan&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 12:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603379#M104980</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2022-06-27T12:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Configure different index time transformations for different outputs | Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603383#M104981</link>
      <description>&lt;P&gt;Why don't you just &lt;SPAN&gt;anonymize&lt;/SPAN&gt; data on index time using&amp;nbsp;&lt;SPAN&gt;SEDCMD?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata#Anonymize_data_through_a_sed_script" target="_blank" rel="noopener"&gt;Anonymize data - Splunk Documentation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Create a an anon app on the indexer that you want the data &lt;SPAN&gt;anonymized&lt;/SPAN&gt;&amp;nbsp;and put in the props.conf&lt;/P&gt;&lt;P&gt;in props.conf&lt;/P&gt;&lt;PRE&gt;[&lt;SPAN&gt;mscs:azure:eventhub&lt;/SPAN&gt;]
SEDCMD-user_anon = &lt;SPAN&gt;&amp;nbsp;^(.*?)"\[{\\"UserName\\":[^,]*(.*)&lt;/SPAN&gt;  &lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jun 2022 13:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603383#M104981</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2022-06-27T13:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Configure different index time transformations for different outputs | Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603388#M104983</link>
      <description>&lt;P&gt;You could use CLONE_SOURCETYPE to do a "copy" of your event. It would have to work something like that.&lt;/P&gt;&lt;P&gt;1. Your input provides splunk with an event of a sourcetype - let's say - microsoft:cloud&lt;/P&gt;&lt;P&gt;2. You do a CLONE_SOURCETYPE to a temporary:sourcetype&lt;/P&gt;&lt;P&gt;3a. The microsoft:cloud event goes through all the normal ingest steps and you route it to output1 (or simply don't touch anything if it's your default output&lt;/P&gt;&lt;P&gt;3b. The temporary:sourcetype gets reinserted into the queue, passes all appropriate transforms and at the end is routed to output2 and you rewrite the sourcetype field back to microsoft:cloud.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 13:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603388#M104983</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-06-27T13:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Configure different index time transformations for different outputs | Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603392#M104984</link>
      <description>&lt;P&gt;Hello Azeemering,&amp;nbsp; thanks for your answer!&lt;BR /&gt;&lt;BR /&gt;The thing is I need to be sure that the events that leave the HF are already anonymized for compliance reason. And I don't have access to the indexer pool n°2.&lt;BR /&gt;&lt;BR /&gt;Regarding SEDCMD or regular expression is equivalent if I'm not mistaken.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603392#M104984</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2022-06-27T14:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Configure different index time transformations for different outputs | Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603589#M105018</link>
      <description>&lt;P data-unlink="true"&gt;Hello&amp;nbsp;&lt;SPAN class=""&gt;PickleRick, thanks for the answer!&lt;BR /&gt;&lt;BR /&gt;I followed your instructions and it does the job!&amp;nbsp;&lt;BR /&gt;Thanks again&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 12:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-different-index-time-transformations-for-different/m-p/603589#M105018</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2022-06-28T12:25:09Z</dc:date>
    </item>
  </channel>
</rss>

