<?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: Unable to filter specific events with props.conf &amp; transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472671#M81233</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Here's a few sanitised examples of the data we're looking at (these all matched on RegExr.com &amp;amp; I've double checked them on the site you linked and they also seem to match):&lt;/P&gt;

&lt;P&gt;2020-04-14 11:57:00 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=Sync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=SamsungDevice&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1909 9&lt;BR /&gt;
2020-04-14 11:56:47 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=Sync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=SamsungDevice&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1909 51&lt;BR /&gt;
2020-04-14 11:55:37 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 67&lt;BR /&gt;
2020-04-14 11:54:17 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 33&lt;BR /&gt;
2020-04-14 11:54:15 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 49&lt;BR /&gt;
2020-04-14 11:53:12 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 33&lt;BR /&gt;
2020-04-14 11:53:11 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 51&lt;/P&gt;

&lt;P&gt;The extra &lt;CODE&gt;/&lt;/CODE&gt; characters signify the start/end of a regex; I'll remove them if they're not required.&lt;/P&gt;

&lt;P&gt;Thanks for the correction on the inputs.conf setting; I'll go in and amend that ASAP!&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 13:52:27 GMT</pubDate>
    <dc:creator>marshallsuk</dc:creator>
    <dc:date>2020-04-15T13:52:27Z</dc:date>
    <item>
      <title>Unable to filter specific events with props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472669#M81231</link>
      <description>&lt;P&gt;I've been reading into how to filter incoming events between the Parsing and Indexing stages of our data pipeline and found a Splunk doc (&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.2001/Forwarding/Routeandfilterdatad" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.2001/Forwarding/Routeandfilterdatad&lt;/A&gt;) which suggests it should be possible to do this by just adding a props.conf and transforms.conf at the indexer:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/286819-splunk-filtering-doc.png" alt="Splunk doc extract" /&gt;&lt;/P&gt;

&lt;P&gt;I have been through and added in what I thought would be valid entries in the conf files, as follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[source::IIS_Exchange]&lt;BR /&gt;
TRANSFORMS-set= setnull,ExchangeParsing&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[ExchangeParsing]&lt;BR /&gt;
REGEX = /(-\s401\s1\s1[39][02][69])/&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;The regex should be monitoring for HTTP 401 errors with a sub-status of 1 and a pair of event error codes we're monitoring for (1326 &amp;amp; 1909), for example:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;401 1 1909 9&lt;/LI&gt;
&lt;LI&gt;401 1 1326 67&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I've tested the regex in both Notepad++ and on RegExr.com and it looks like it should work.&lt;/P&gt;

&lt;P&gt;We use a Universal Forwarder to send the data into the indexer, which is just trying to monitor standard IIS logs on a load balanced server pair; the inputs.conf for the relevant source is as follows:&lt;/P&gt;

&lt;P&gt;[monitor://G:\inetpub\logs\LogFiles\W3SVC1*.log]&lt;BR /&gt;
index = mar&lt;BR /&gt;
source_type = iis&lt;BR /&gt;
disabled = false&lt;BR /&gt;
recursive = true&lt;BR /&gt;
source = IIS_Exchange&lt;/P&gt;

&lt;P&gt;I've restarted Splunk on the indexer for this to take effect but nothing appears to be happening. I had expected that if the 2nd stanza in the transforms.conf was incorrect we'd get no data at all from the source, as it would all initially be filtered to the nullQueue. This suggests to me that the transform isn't applying to the incoming data at all but I cannot fathom why. &lt;/P&gt;

&lt;P&gt;Can anybody please tell me what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472669#M81231</guid>
      <dc:creator>marshallsuk</dc:creator>
      <dc:date>2020-09-30T04:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to filter specific events with props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472670#M81232</link>
      <description>&lt;P&gt;Please share some sample events the REGEX is to parse.&lt;BR /&gt;
The &lt;CODE&gt;REGEX&lt;/CODE&gt; value appears to have extra &lt;CODE&gt;/&lt;/CODE&gt; characters on each end.  It also will match more than two expected error codes.  Did you test it on regex101.com?  Make sure your regex tester uses PCRE mode.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;source_type&lt;/CODE&gt; should be &lt;CODE&gt;sourcetype&lt;/CODE&gt; in inputs.conf.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 12:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472670#M81232</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-15T12:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to filter specific events with props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472671#M81233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Here's a few sanitised examples of the data we're looking at (these all matched on RegExr.com &amp;amp; I've double checked them on the site you linked and they also seem to match):&lt;/P&gt;

&lt;P&gt;2020-04-14 11:57:00 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=Sync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=SamsungDevice&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1909 9&lt;BR /&gt;
2020-04-14 11:56:47 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=Sync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=SamsungDevice&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1909 51&lt;BR /&gt;
2020-04-14 11:55:37 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 67&lt;BR /&gt;
2020-04-14 11:54:17 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 33&lt;BR /&gt;
2020-04-14 11:54:15 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 49&lt;BR /&gt;
2020-04-14 11:53:12 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 33&lt;BR /&gt;
2020-04-14 11:53:11 123.123.123.123 POST /Microsoft-Server-ActiveSync/default.eas Cmd=FolderSync&amp;amp;User=UsernameHere&amp;amp;DeviceId=DeviceIDHere&amp;amp;DeviceType=Android&amp;amp;CorrelationID=;&amp;amp;cafeReqId=UniqueIDHere; 443 UsernameHere 123.123.123.123 - 401 1 1326 51&lt;/P&gt;

&lt;P&gt;The extra &lt;CODE&gt;/&lt;/CODE&gt; characters signify the start/end of a regex; I'll remove them if they're not required.&lt;/P&gt;

&lt;P&gt;Thanks for the correction on the inputs.conf setting; I'll go in and amend that ASAP!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 13:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472671#M81233</guid>
      <dc:creator>marshallsuk</dc:creator>
      <dc:date>2020-04-15T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to filter specific events with props.conf &amp; transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472672#M81234</link>
      <description>&lt;P&gt;Delimiters should not be used in &lt;CODE&gt;REGEX&lt;/CODE&gt; unless part of the text being matched.&lt;BR /&gt;
This regex works with your sample data.  Perhaps you'll get different results with it.  &lt;CODE&gt;-\s401\s1\s(?:1326|1909)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 16:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-filter-specific-events-with-props-conf-transforms-conf/m-p/472672#M81234</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-15T16:55:29Z</dc:date>
    </item>
  </channel>
</rss>

