<?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 Changes to Tranforms.Conf not reflected in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Changes-to-Tranforms-Conf-not-reflected/m-p/100123#M20934</link>
    <description>&lt;P&gt;I have a scripted input that gather SQL Perfmon counters via wmi.  It is gathering data and working without issue, however we need to edit it to gather more SQLServer Locks Counters.  Below are the entries in the Inputs.Conf, Props.Conf and Transforms.Conf files as well as the .bat file and counters we are calling.  I can add counters and these will be gathered without issue however splunk will fail to put it into the intended 'buckets' I list in the Tranforms.Conf file.  In fact if I even try to simply change the name of the Format column in the Transforms.conf it does not register in splunk.  It is as if once the data is indexed it does not like changes.  Also is there a limit on how many REGEX and FORMAT columns I can specify for any scripted input in the Transforms.conf? Any help would be appreciated.  &lt;/P&gt;

&lt;P&gt;Thank You&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Inputs.Conf&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME\etc\apps\sqlwmi\bin\sqlwmi-locks.bat]
interval = 120 
index = sqlserver
sourcetype = WMI:SQLServer:Locks
source = script://sqlwmi-locks.bat
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sqlwmi-locks.bat&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;@echo off
IF EXIST "C:\program files\splunk\etc\apps\sqlwmi\bin" typeperf -cf "C:\program files\splunk\etc\apps\sqlwmi\bin\sql-locks-counters.txt" -sc 1
IF EXIST "D:\program files\splunk\etc\apps\sqlwmi\bin" typeperf -cf "D:\program files\splunk\etc\apps\sqlwmi\bin\sql-locks-counters.txt" -sc 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sql-locks-counters.txt&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\SQLSERVER:Locks(_Total)\Lock Requests/sec
\SQLSERVER:Locks(_Total)\Number of Deadlocks/sec
\SQLSERVER:Locks(_Total)\Lock Waits/sec
\SQLSERVER:Locks(_Total)\Lock Wait Time (ms)
\SQLSERVER:Locks(_Total)\Lock Timeouts/sec
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Props.Conf&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::script://sqlwmi-locks.bat]
LINE_BREAKER = ""
SHOULD_LINEMERGE = true
TRANSFORMS-locks = locks
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Transforms.conf&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[locks]
DEST_KEY = _raw
REGEX = (?im)"(.*)","([0-9]*\.[0-9]*)","([0-9]*\.[0-9]*)","([0-9]*\.[0-9]*)","([0-9]*\.[0-9]*)","([0-9]*\.[0-9]*)"
FORMAT = $1 LockRequestsPerSec=$2 NumberOfDeadlocksPerSec=$3 LockWaitsPerSec=$4 LockWaitTimeMS=$5 LockTimoutsPerSec=$6
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Dec 2010 04:05:32 GMT</pubDate>
    <dc:creator>JOverbey</dc:creator>
    <dc:date>2010-12-07T04:05:32Z</dc:date>
    <item>
      <title>Changes to Tranforms.Conf not reflected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changes-to-Tranforms-Conf-not-reflected/m-p/100123#M20934</link>
      <description>&lt;P&gt;I have a scripted input that gather SQL Perfmon counters via wmi.  It is gathering data and working without issue, however we need to edit it to gather more SQLServer Locks Counters.  Below are the entries in the Inputs.Conf, Props.Conf and Transforms.Conf files as well as the .bat file and counters we are calling.  I can add counters and these will be gathered without issue however splunk will fail to put it into the intended 'buckets' I list in the Tranforms.Conf file.  In fact if I even try to simply change the name of the Format column in the Transforms.conf it does not register in splunk.  It is as if once the data is indexed it does not like changes.  Also is there a limit on how many REGEX and FORMAT columns I can specify for any scripted input in the Transforms.conf? Any help would be appreciated.  &lt;/P&gt;

&lt;P&gt;Thank You&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Inputs.Conf&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME\etc\apps\sqlwmi\bin\sqlwmi-locks.bat]
interval = 120 
index = sqlserver
sourcetype = WMI:SQLServer:Locks
source = script://sqlwmi-locks.bat
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sqlwmi-locks.bat&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;@echo off
IF EXIST "C:\program files\splunk\etc\apps\sqlwmi\bin" typeperf -cf "C:\program files\splunk\etc\apps\sqlwmi\bin\sql-locks-counters.txt" -sc 1
IF EXIST "D:\program files\splunk\etc\apps\sqlwmi\bin" typeperf -cf "D:\program files\splunk\etc\apps\sqlwmi\bin\sql-locks-counters.txt" -sc 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sql-locks-counters.txt&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\SQLSERVER:Locks(_Total)\Lock Requests/sec
\SQLSERVER:Locks(_Total)\Number of Deadlocks/sec
\SQLSERVER:Locks(_Total)\Lock Waits/sec
\SQLSERVER:Locks(_Total)\Lock Wait Time (ms)
\SQLSERVER:Locks(_Total)\Lock Timeouts/sec
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Props.Conf&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::script://sqlwmi-locks.bat]
LINE_BREAKER = ""
SHOULD_LINEMERGE = true
TRANSFORMS-locks = locks
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Transforms.conf&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[locks]
DEST_KEY = _raw
REGEX = (?im)"(.*)","([0-9]*\.[0-9]*)","([0-9]*\.[0-9]*)","([0-9]*\.[0-9]*)","([0-9]*\.[0-9]*)","([0-9]*\.[0-9]*)"
FORMAT = $1 LockRequestsPerSec=$2 NumberOfDeadlocksPerSec=$3 LockWaitsPerSec=$4 LockWaitTimeMS=$5 LockTimoutsPerSec=$6
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Dec 2010 04:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changes-to-Tranforms-Conf-not-reflected/m-p/100123#M20934</guid>
      <dc:creator>JOverbey</dc:creator>
      <dc:date>2010-12-07T04:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to Tranforms.Conf not reflected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changes-to-Tranforms-Conf-not-reflected/m-p/100124#M20935</link>
      <description>&lt;P&gt;The problem is that you have configured your &lt;CODE&gt;field extractions&lt;/CODE&gt; as &lt;CODE&gt;index-time&lt;/CODE&gt; instead of &lt;CODE&gt;search-time&lt;/CODE&gt;.  The former type of extractions are permanently baked in at the time of indexing and cannot be changed after that (but it &lt;EM&gt;will&lt;/EM&gt; change for future events whenever you do make changes in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;).   To change it to a &lt;CODE&gt;search-time&lt;/CODE&gt; configuration, replace &lt;CODE&gt;TRANSFORMS-lock&lt;/CODE&gt; with &lt;CODE&gt;REPORT-lock&lt;/CODE&gt; and be sure to deploy the file to your &lt;CODE&gt;Search Heads&lt;/CODE&gt; as well as to your &lt;CODE&gt;Indexers&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 01:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changes-to-Tranforms-Conf-not-reflected/m-p/100124#M20935</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T01:38:19Z</dc:date>
    </item>
  </channel>
</rss>

