<?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: Regex for field ending with $ in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35670#M418</link>
    <description>&lt;P&gt;Sorry the copy/paste bit obviuosly did not work correctly&lt;BR /&gt;
the regex should read 'REGEX=(?m)^User=\$$' which i thought should be any "user value ending in '$'". I have tried changing this to what you suggested and it still has no affect.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2011 15:13:13 GMT</pubDate>
    <dc:creator>cr32003</dc:creator>
    <dc:date>2011-12-15T15:13:13Z</dc:date>
    <item>
      <title>Regex for field ending with $</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35668#M416</link>
      <description>&lt;P&gt;I am trying to filter out WMI events that have the 'User' field whicxh ends with a $ i.e a special character as far as regex is concerned.I am running Splunk version 4.2.2 on a windows 2003 server (virtualised).&lt;BR /&gt;
my 'local' 'props.conf' is set to:-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WMI:WinEventLog:Security]
TRANSFORMS-wmi=wmiExcludeUsers

[WMI:WinEventLog:Security]
TRANSFORMS-wmi=wmiExcludeEventCodes
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my 'local' 'transforms.conf' is set to:-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[wmiExcludeEventCodes]
REGEX=(?m)^EventCode=(512|513|514|515)
DEST_KEY=queue
FORMAT=nullQueue 

[wmiExcludeUsers]
REGEX=(?m)^User=\$$
DEST_KEY=queue
FORMAT=nullQueue 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am fairly sure that the EventCodes bit is working but the Users bit is not.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 14:29:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35668#M416</guid>
      <dc:creator>cr32003</dc:creator>
      <dc:date>2011-12-15T14:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for field ending with $</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35669#M417</link>
      <description>&lt;P&gt;Why don't you replace the "&lt;CODE&gt;$$&lt;/CODE&gt;" with "&lt;CODE&gt;.*\$&lt;/CODE&gt;" This should take anything up to &lt;CODE&gt;$&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 14:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35669#M417</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-15T14:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for field ending with $</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35670#M418</link>
      <description>&lt;P&gt;Sorry the copy/paste bit obviuosly did not work correctly&lt;BR /&gt;
the regex should read 'REGEX=(?m)^User=\$$' which i thought should be any "user value ending in '$'". I have tried changing this to what you suggested and it still has no affect.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35670#M418</guid>
      <dc:creator>cr32003</dc:creator>
      <dc:date>2011-12-15T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for field ending with $</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35671#M419</link>
      <description>&lt;P&gt;How abut something like this... I don't think you need to have two stanzas in the props.conf as they are the same sourcetype (have you checked the sourcetype is correct in Splunk?). &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WMI:WinEventLog:Security]
TRANSFORMS-wmievents = wmieventsnull 
TRANSFORMS-wmiusers = wmiusersnull

[wmieventsnull] 
REGEX = (?m)^User=(.*\$) 
DEST_KEY = queue 
FORMAT = nullQueue

[wmiexcludenull] 
REGEX = (?m)^EventCode=(512|513|514|515) 
DEST_KEY = queue 
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(Thanks to Ayn for correction!)&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35671#M419</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-15T15:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for field ending with $</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35672#M420</link>
      <description>&lt;P&gt;The TRANSFORMS sections should have a unique identifier, so for instance TRANSFORMS-wmievents and TRANSFORMS-wmiusers.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35672#M420</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-12-15T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for field ending with $</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35673#M421</link>
      <description>&lt;P&gt;Ah ok, I wasn't sure, because you can have a transforms like...&lt;/P&gt;

&lt;P&gt;TRANSFORMS-wmi = wmievents, wmiusers&lt;/P&gt;

&lt;P&gt;Can't you?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35673#M421</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-12-15T15:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for field ending with $</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35674#M422</link>
      <description>&lt;P&gt;I have now tried pretty much all of the conbinations, including the one(s) above BUT if i put in the EventCode REGEX all is Hunky Dory and ANY changes made to the EventCode numbers are reflected in the indexing.&lt;BR /&gt;
However if I then remove the EventCode REGEX and insert the User REGEX (either your version above or my original version) into the SAME TRANSFORMS Stanza then Splunk in its wisdom still indexes all of the events with the User field ending in '$'.&lt;BR /&gt;
The MOST annoying thing is that if I do the following search:-&lt;BR /&gt;
source="WMI:WinEventLog:Security" | regex User="\$$" &lt;BR /&gt;
Then the results are all events with the User field ending in '$'.&lt;BR /&gt;
Is there any 'debugging' tools to see what Splunk is actually doing when it receives the event and makes the decision as to whether to either index it or not?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2011 15:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Regex-for-field-ending-with/m-p/35674#M422</guid>
      <dc:creator>cr32003</dc:creator>
      <dc:date>2011-12-19T15:35:38Z</dc:date>
    </item>
  </channel>
</rss>

