<?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 are working on a local Splunk instance, but why are fields not extracted correctly when deployed to my search head cluster? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221528#M65111</link>
    <description>&lt;P&gt;Yea, the transforming is done on the indexers, not the search heads. &lt;BR /&gt;
But I am also wondering why you tried to deploy the changes in the "default" directory. This is only done when you deploy the first time. When you update the configuration, you usually store it under \local\ and don't change \default\ files..&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2016 15:19:54 GMT</pubDate>
    <dc:creator>skalliger</dc:creator>
    <dc:date>2016-11-16T15:19:54Z</dc:date>
    <item>
      <title>Transforms are working on a local Splunk instance, but why are fields not extracted correctly when deployed to my search head cluster?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221526#M65109</link>
      <description>&lt;P&gt;Having a strange issue. I am trying to set up a transform to automatically extract key/value pairs from a non standard XML file. I have a local Splunk instance where I did this development.  Here is what I did:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Did a Add New of a data source&lt;/LI&gt;
&lt;LI&gt;Selected a local copy of the XML file&lt;/LI&gt;
&lt;LI&gt;The data was read once (not set to monitor the file)&lt;/LI&gt;
&lt;LI&gt;Data was indexed into an index called 'app_test'&lt;/LI&gt;
&lt;LI&gt;Data is in the Search app&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I then went ahead and updated my props.conf and transforms.conf in my $SPLUNK_ROOT/etc/apps/search/local&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dmwt:xml]
REPORT-myXmlClassName = xmlTransform
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xmlTransform]
REGEX = \&amp;lt;(\w+[^\n\/\&amp;gt;]+)\/?\&amp;gt;([^\&amp;lt;\n][^\&amp;lt;]*)\&amp;lt;
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The extraction worked beautifully. So next I went to go add it to my clustered environment. I have the XML data being indexed to an index called app_dmwt. I also created an app called 'DMWT'. I created similar additions to the props.conf and transforms.conf, but this time put it in $SPLUNK_ROOT/etc/shcluster/app/DMWT/default . Note that the difference here is that instead of doing an add datasource from the UI, I have a forwarder monitoring 3 files each as their own sourcetype.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ dmwt:delete ]
REPORT-xmlkv = xmlkv-alternative

[ dmwt:insert ]
REPORT-xmlkv = xmlkv-alternative

[ dmwt:update ]
REPORT-xmlkv = xmlkv-alternative
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xmlkv-alternative]
REGEX = \&amp;lt;(\w+[^\n\/\&amp;gt;]+)\/?\&amp;gt;([^\&amp;lt;\n][^\&amp;lt;]*)\&amp;lt;
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I then did a bundle push from the deployer, but for some reason, the transform isn't taking effect.&lt;/P&gt;

&lt;P&gt;Any thoughts to what might be going on?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:46:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221526#M65109</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2020-09-29T11:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms are working on a local Splunk instance, but why are fields not extracted correctly when deployed to my search head cluster?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221527#M65110</link>
      <description>&lt;P&gt;I &lt;EM&gt;may&lt;/EM&gt; have found my problem.  I was applying my props on the search head cluster, not on the indexer.  Correcting that now to see if it resolves the problem!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 14:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221527#M65110</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2016-11-16T14:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms are working on a local Splunk instance, but why are fields not extracted correctly when deployed to my search head cluster?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221528#M65111</link>
      <description>&lt;P&gt;Yea, the transforming is done on the indexers, not the search heads. &lt;BR /&gt;
But I am also wondering why you tried to deploy the changes in the "default" directory. This is only done when you deploy the first time. When you update the configuration, you usually store it under \local\ and don't change \default\ files..&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 15:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221528#M65111</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2016-11-16T15:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms are working on a local Splunk instance, but why are fields not extracted correctly when deployed to my search head cluster?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221529#M65112</link>
      <description>&lt;P&gt;did you solve the problem ?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 15:20:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221529#M65112</guid>
      <dc:creator>Afef</dc:creator>
      <dc:date>2016-11-16T15:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms are working on a local Splunk instance, but why are fields not extracted correctly when deployed to my search head cluster?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221530#M65113</link>
      <description>&lt;P&gt;Interestingly enough, it didn't even work on the indexers when i pushed the bundle.  I was messing around and came back to pushing them to the forwarders.  Once I did an &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=whatever | extract reload=t 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it updated everything....&lt;/P&gt;

&lt;P&gt;Also, the reason i am working in default is because i am developing this app in a lower environment for my users to test.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 16:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-are-working-on-a-local-Splunk-instance-but-why-are/m-p/221530#M65113</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2016-11-16T16:02:31Z</dc:date>
    </item>
  </channel>
</rss>

