<?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 HUNK: How to create two different sourcetypes from the same source (HDFS) in two dedicated apps? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HUNK-How-to-create-two-different-sourcetypes-from-the-same/m-p/193808#M38616</link>
    <description>&lt;P&gt;I have two types of people that need to access the same data source, but one of them must access anonymized data.&lt;/P&gt;

&lt;P&gt;I have created two applications and I tried to force the sourcetype in props.conf and transforms.conf, but Splunk merged both and only one transform is applied.&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
First App :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../user/haddadm/share/hls/commun/data/reception/access/env=homo/*/*/*]
TRANSFORMS-sourcetype = source1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second App :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../user/haddadm/share/hls/commun/data/reception/access/env=homo/*/*/*]
TRANSFORMS-sourcetype2 = source2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms :&lt;BR /&gt;
First App :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source2]
DEST_KEY = MetaData:Sourcetype
REGEX = .*
FORMAT = sourcetype::access2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second App:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source2]
DEST_KEY = MetaData:Sourcetype
REGEX = .*
FORMAT = sourcetype::access2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2015 13:23:27 GMT</pubDate>
    <dc:creator>tony_alibelli</dc:creator>
    <dc:date>2015-08-26T13:23:27Z</dc:date>
    <item>
      <title>HUNK: How to create two different sourcetypes from the same source (HDFS) in two dedicated apps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HUNK-How-to-create-two-different-sourcetypes-from-the-same/m-p/193808#M38616</link>
      <description>&lt;P&gt;I have two types of people that need to access the same data source, but one of them must access anonymized data.&lt;/P&gt;

&lt;P&gt;I have created two applications and I tried to force the sourcetype in props.conf and transforms.conf, but Splunk merged both and only one transform is applied.&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
First App :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../user/haddadm/share/hls/commun/data/reception/access/env=homo/*/*/*]
TRANSFORMS-sourcetype = source1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second App :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../user/haddadm/share/hls/commun/data/reception/access/env=homo/*/*/*]
TRANSFORMS-sourcetype2 = source2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms :&lt;BR /&gt;
First App :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source2]
DEST_KEY = MetaData:Sourcetype
REGEX = .*
FORMAT = sourcetype::access2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second App:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source2]
DEST_KEY = MetaData:Sourcetype
REGEX = .*
FORMAT = sourcetype::access2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 13:23:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HUNK-How-to-create-two-different-sourcetypes-from-the-same/m-p/193808#M38616</guid>
      <dc:creator>tony_alibelli</dc:creator>
      <dc:date>2015-08-26T13:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: HUNK: How to create two different sourcetypes from the same source (HDFS) in two dedicated apps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HUNK-How-to-create-two-different-sourcetypes-from-the-same/m-p/193809#M38617</link>
      <description>&lt;P&gt;One event can have only one source type, think of it as a tag which gets added upon indexing. If you need the clear and the anonymized data, I would copy the data to a second index and anonymize the data during this copy. So you can create a role which has only access to this index, and thus only to the anonymized data.&lt;BR /&gt;
If it is not that important, you could create an app which does not show the clear data, create a restricted role for this app so it has access to this index, but can not execute any free from search. Then grant only this app to a certain role. But if one user has an additional role which allows access to the search app, then this user is able to search the index and see the clear data, something you probably don't want.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 14:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HUNK-How-to-create-two-different-sourcetypes-from-the-same/m-p/193809#M38617</guid>
      <dc:creator>FritzWittwer_ol</dc:creator>
      <dc:date>2015-08-26T14:43:07Z</dc:date>
    </item>
  </channel>
</rss>

