<?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 props.conf and transforms.conf does not work in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134780#M27727</link>
    <description>&lt;P&gt;Hi,i dont the content field to be forward to indexer, i configured props.conf and transforms.conf but it does not work. Anyone can assist?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xml&amp;gt;
    &amp;lt;Field1&amp;gt;123&amp;lt;/Field1&amp;gt;
    &amp;lt;Field2&amp;gt;456&amp;lt;/Field2&amp;gt;
    &amp;lt;Body&amp;gt;Not to be forward to indexer&amp;lt;/Body&amp;gt;
    &amp;lt;Field3&amp;gt;333&amp;lt;/Field3&amp;gt;
    &amp;lt;content&amp;gt;not to be forward&amp;lt;/content&amp;gt;
&amp;lt;/xml&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;at props.conf, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
TRANSFORMS-null = content
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;at transforms.conf, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[content]
REGEX = &amp;lt;content&amp;gt;(.+)&amp;lt;/content&amp;gt; 
DEST_KEY = queue 
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i want to have the final result at the indexer as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xml&amp;gt;
    &amp;lt;Field1&amp;gt;123&amp;lt;/Field1&amp;gt;
    &amp;lt;Field2&amp;gt;456&amp;lt;/Field2&amp;gt;
    &amp;lt;Body&amp;gt;Not to be forward to indexer&amp;lt;/Body&amp;gt;
    &amp;lt;Field3&amp;gt;333&amp;lt;/Field3&amp;gt;  
&amp;lt;/xml&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I configured the props.conf and transforms.conf for both forwarder and indexer but it does not work. Any problem with my config files?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2014 02:12:25 GMT</pubDate>
    <dc:creator>SplunkCSIT</dc:creator>
    <dc:date>2014-04-17T02:12:25Z</dc:date>
    <item>
      <title>props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134780#M27727</link>
      <description>&lt;P&gt;Hi,i dont the content field to be forward to indexer, i configured props.conf and transforms.conf but it does not work. Anyone can assist?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xml&amp;gt;
    &amp;lt;Field1&amp;gt;123&amp;lt;/Field1&amp;gt;
    &amp;lt;Field2&amp;gt;456&amp;lt;/Field2&amp;gt;
    &amp;lt;Body&amp;gt;Not to be forward to indexer&amp;lt;/Body&amp;gt;
    &amp;lt;Field3&amp;gt;333&amp;lt;/Field3&amp;gt;
    &amp;lt;content&amp;gt;not to be forward&amp;lt;/content&amp;gt;
&amp;lt;/xml&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;at props.conf, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
TRANSFORMS-null = content
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;at transforms.conf, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[content]
REGEX = &amp;lt;content&amp;gt;(.+)&amp;lt;/content&amp;gt; 
DEST_KEY = queue 
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i want to have the final result at the indexer as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xml&amp;gt;
    &amp;lt;Field1&amp;gt;123&amp;lt;/Field1&amp;gt;
    &amp;lt;Field2&amp;gt;456&amp;lt;/Field2&amp;gt;
    &amp;lt;Body&amp;gt;Not to be forward to indexer&amp;lt;/Body&amp;gt;
    &amp;lt;Field3&amp;gt;333&amp;lt;/Field3&amp;gt;  
&amp;lt;/xml&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I configured the props.conf and transforms.conf for both forwarder and indexer but it does not work. Any problem with my config files?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 02:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134780#M27727</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-17T02:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134781#M27728</link>
      <description>&lt;P&gt;Yes - your configuration files have problems. For one thing, the transform you listed, if it worked, would send the &lt;EM&gt;entire event&lt;/EM&gt; to the null queue, not just the line that you have listed. That might actually work, if you treat each line of the input as a separate event (and fix the regular expression), but that is not what I would recommend. Try this instead:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
BREAK_ONLY_BEFORE =\&amp;lt;xml\&amp;gt;
KV_MODE = xml
TRANSFORMS-test1 = content
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[content]
SOURCE_KEY=_raw
REGEX=(.*?)\&amp;lt;content\&amp;gt;.*?\&amp;lt;/content\&amp;gt;(.*)
DEST_KEY=_raw
FORMAT=$1$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should completely remove the &lt;CODE&gt;&amp;lt;content&amp;gt;&lt;/CODE&gt; tag and its contents, while leaving the rest of the event unchanged.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt; change how the data is parsed. So if you are using a Universal Forwarder, the &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt; files belong on the indexer(s). Heavy forwarders will parse the data, so if you are using one, then you must put these &lt;CODE&gt;.conf&lt;/CODE&gt; files on the heavy forwarder. &lt;/P&gt;

&lt;P&gt;For more information on the parsing settings, look at the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Data/Overviewofeventprocessing"&gt;event processing topics&lt;/A&gt; in the Getting Data In manual.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 04:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134781#M27728</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-04-17T04:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134782#M27729</link>
      <description>&lt;P&gt;THks for providing the info. i had configured the .conf files on the heavy forwarder, so i should not see the &lt;CONTENT&gt; tag and its contents in the data preview, when the input is configured? But i still see the &lt;CONTENT&gt; tag and its contents. Pls assist. thks&lt;/CONTENT&gt;&lt;/CONTENT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 06:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134782#M27729</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-17T06:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134783#M27730</link>
      <description>&lt;P&gt;thks, i tested it worked if the contents in the &lt;CONTENT&gt; tag are few characters but if the content in the &lt;CONTENT&gt; tag is more than few hundred Kbytes info, it cannot work. Any other suggestions?&lt;/CONTENT&gt;&lt;/CONTENT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 16:11:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134783#M27730</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-17T16:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134784#M27731</link>
      <description>&lt;P&gt;If the events are large, add this to &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRUNCATE = 0
MAX_EVENTS = 10000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;TRUNCATE&lt;/CODE&gt; is the maximum number of bytes in an event. Setting it to 0 means "no limit." &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;MAX_EVENTS&lt;/CODE&gt; is the maximum number of lines in an event. The default is 256. I arbitrarily set it to 10,000 in the example.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 17:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134784#M27731</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-04-17T17:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134785#M27732</link>
      <description>&lt;P&gt;Data Preview looks at the file BEFORE it is parsed, so you will still see the content there. When you search &lt;CODE&gt;sourcetype=test&lt;/CODE&gt;, you should not see the content&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 17:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134785#M27732</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-04-17T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134786#M27733</link>
      <description>&lt;P&gt;max_events = 10000000 also not enough, any other alternative? thks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 06:26:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/134786#M27733</guid>
      <dc:creator>SplunkCSIT</dc:creator>
      <dc:date>2014-04-18T06:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/519659#M87856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/24229"&gt;@lguinn2&lt;/a&gt;&amp;nbsp;, I am trying to remove some of the sensitive information to be indexed by Splunk.&lt;/P&gt;&lt;P&gt;But these configurations are not working ,even after getting the configuration reflected over btool and validating the regex over SPL.&lt;BR /&gt;Can you please have a look on it?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;[o365:management:activity]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TRANSFORMS-anonymize = info-anonymizer&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;KV_MODE = json&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TRUNCATE = 10485760&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;[info-anonymizer]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DEST_KEY = _raw&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FORMAT = $1$2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;REGEX = (.*\"SensitiveInformationDetections\"\:\s\{)\"DetectedValues\"\:\s\[.*\]\,\s(\"ResultsTruncated\"\:.*)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have already Validated regex over SPL, It is working fine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;|regex _raw="(.*\"SensitiveInformationDetections\"\:\s\{)\"DetectedValues\"\:\s\[.*\]\,\s(\"ResultsTruncated\"\:.*)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;|rex field=_raw "(?&amp;lt;before&amp;gt;.*\"SensitiveInformationDetections\"\:\s\{)\"DetectedValues\"\:\s\[.*\]\,\s(?&amp;lt;after&amp;gt;\"ResultsTruncated\"\:.*)"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;|eval _raw=before+""+after&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 11:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/519659#M87856</guid>
      <dc:creator>payal4296</dc:creator>
      <dc:date>2020-09-15T11:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf and transforms.conf does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/519665#M87858</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Masking-sensitive-information-from-event/m-p/519664#M87857" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Masking-sensitive-information-from-event/m-p/519664#M87857&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 11:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/props-conf-and-transforms-conf-does-not-work/m-p/519665#M87858</guid>
      <dc:creator>payal4296</dc:creator>
      <dc:date>2020-09-15T11:37:16Z</dc:date>
    </item>
  </channel>
</rss>

