<?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 filter in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161058#M98044</link>
    <description>&lt;P&gt;Thanks, but that didn't work.  I want only events where field 7 beings with FIL/WC/IPS and I'm still getting everything.&lt;/P&gt;</description>
    <pubDate>Sat, 30 Nov 2013 21:12:19 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2013-11-30T21:12:19Z</dc:date>
    <item>
      <title>transforms filter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161056#M98042</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a large logfile, but only want certain data.  The data is very well structured:&lt;/P&gt;

&lt;P&gt;timestamp|itemId|field1Name|field1Value|field2Name|field2Value...&lt;/P&gt;

&lt;P&gt;1385832300000|325447|NormalizedCPUInfo|Utilization|3|CPU|IVEblah|CPU 1&lt;BR /&gt;
1385832300000|358154|NormalizedCPUInfo|Utilization|1|CPU|FILBlah|CPU 5&lt;BR /&gt;
1385832300000|330336|NormalizedMemoryInfo|Utilization|94|Memory|WCblah|Memory&lt;BR /&gt;
1385832300000|326223|NormalizedCPUInfo|Utilization|3|CPU|wCblAH1|BlueCoat CPU3&lt;BR /&gt;
1385832300000|326223|NormalizedCPUInfo|cpuIdleUtilization|97|CPU|iPS-sdf|BlueCoat CPU3&lt;BR /&gt;
1385832300000|326223|NormalizedCPUInfo|cpuIdleUtilization|97|CPU|R7DALblh|BlueCoat CPU3&lt;BR /&gt;
1385832300000|326223|NormalizedCPUInfo|cpuIdleUtilization|97|CPU|C29mmkabc|BlueCoat CPU3&lt;/P&gt;

&lt;P&gt;I only want to report on certain devices, which is based on the 7th field. &lt;/P&gt;

&lt;P&gt;My props.conf has the following entry:&lt;BR /&gt;
TRANSFORMS-set = setnull,setparsing&lt;/P&gt;

&lt;P&gt;And my transforms.conf has the following:&lt;BR /&gt;
[setnull] &lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing] &lt;BR /&gt;
REGEX = (?:[^|]+|){6}(FIL|[Ww[Cc]|[Ii][Pp][Ss]|[Ii][Vv][Ee])&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;I expect to only receive events that where the 7th field starts with FIL/WC/IPS..., yet I am receiving everything. Did I miss something? These entries are on the indexer, in a distributed environment (forward-&amp;gt;indexer-&amp;gt;sh).  &lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2013 18:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161056#M98042</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-11-30T18:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: transforms filter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161057#M98043</link>
      <description>&lt;P&gt;According to regexpal.com your regex matches this:&lt;/P&gt;

&lt;P&gt;1385832300000|325447|&lt;STRONG&gt;NormalizedC&lt;/STRONG&gt;PUInfo|Utilization|3|&lt;STRONG&gt;C&lt;/STRONG&gt;PU|&lt;STRONG&gt;IVE&lt;/STRONG&gt;blah|&lt;STRONG&gt;C&lt;/STRONG&gt;PU 1&lt;/P&gt;

&lt;P&gt;The matched parts are bold. The current regex is not using "|" correctly as or. Everything needs to be inside a single set of brackets.&lt;/P&gt;

&lt;P&gt;If you want to match only the events you have specified then your regex will need to look more like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setparsing] 
REGEX = ^(\w+\|){6}[FIL|Ww|Cc|Ii|Pp|Ss|Ii|Vv|Ee]
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Nov 2013 20:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161057#M98043</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-11-30T20:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: transforms filter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161058#M98044</link>
      <description>&lt;P&gt;Thanks, but that didn't work.  I want only events where field 7 beings with FIL/WC/IPS and I'm still getting everything.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2013 21:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161058#M98044</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-11-30T21:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: transforms filter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161059#M98045</link>
      <description>&lt;P&gt;I assume you restarted the instance and deployed this to the forwarder and indexer both?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2013 23:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161059#M98045</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-11-30T23:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: transforms filter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161060#M98046</link>
      <description>&lt;P&gt;Never mind, got it! Thanks for all the help.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2013 01:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-filter/m-p/161060#M98046</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-12-01T01:18:41Z</dc:date>
    </item>
  </channel>
</rss>

