<?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: How to use STOP_PROCESSING_IF in transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753119#M119582</link>
    <description>&lt;P&gt;It's hard to evaluate the expressions without sample data, but I have doubts about the number of escape characters (particularly "\\s*").&amp;nbsp; Have you used &lt;A href="https://regex101.com" target="_blank" rel="noopener"&gt;regex101.com&lt;/A&gt; to verify the expressions?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Sep 2025 20:48:42 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2025-09-15T20:48:42Z</dc:date>
    <item>
      <title>How to use STOP_PROCESSING_IF in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753109#M119577</link>
      <description>&lt;P&gt;Can anyone give me some examples of using&amp;nbsp;STOP_PROCESSING_IF in transforms.conf? Seems there is no examples exists within transforms.conf.example&lt;BR /&gt;&lt;BR /&gt;Can I use it to stop processing events once match a regex?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 16:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753109#M119577</guid>
      <dc:creator>vincentwhn</dc:creator>
      <dc:date>2025-09-15T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use STOP_PROCESSING_IF in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753110#M119578</link>
      <description>&lt;P&gt;I've seen that setting used like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;transforms.conf
[mytransform]
INGEST_EVAL = queue=if(condition, "nullQueue", queue)
STOP_PROCESSING_IF = queue=="nullQueue"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 17:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753110#M119578</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-09-15T17:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use STOP_PROCESSING_IF in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753111#M119579</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;Can you also help to review below configs as well? Many Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[testlog]&lt;BR /&gt;RULESET-ruleset_testlog = rule1, rule2, rule3, rule4&lt;BR /&gt;RULESET_DESC-ruleset_testlog =&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[rule1]&lt;BR /&gt;STOP_PROCESSING_IF = if(match(_raw, "\"Workload\"\\s*:\\s*\"?CRM\"?") and (match(_raw,"\"EntityName\"\\s*:\\s*\"?(appointment|contact|lead|list|msevtmgt_event|opportunity|ttr_couponmaster)\"?") or match(_raw, "\"Message\"\\s*:\\s*\"?ExportToExcel\"?")),false,true)&lt;/P&gt;&lt;P&gt;[rule2]&lt;BR /&gt;INGEST_EVAL = _raw:=replace(_raw, "(\"(?!(?:EntityId|EntityName|Message|QueryResults|CorrelationId|InstanceUrl|Fields|Name|Value|UserId|Id|CreationTime|Workload|ResultStatus))[^\"]+\"\\s*:\\s*(?:\\{[^{}]*\\}|\\[[^\\[\\]]*\\]|\"(?:[^\"\\\\]|\\\\.)*\"|[^,}\\r\\n]+))", "")&lt;/P&gt;&lt;P&gt;[rule3]&lt;BR /&gt;INGEST_EVAL = _raw:=replace(_raw, ",{2,}", ",")&lt;/P&gt;&lt;P&gt;[rule4]&lt;BR /&gt;INGEST_EVAL = _raw:=replace(_raw, ",}\\s*$", "}")&lt;BR /&gt;&lt;BR /&gt;I would like to use rule1 to limit where those&amp;nbsp;INGEST_EVAL applies. Am I doing anything wrong here?&lt;BR /&gt;Applied above config but found no changes.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 17:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753111#M119579</guid>
      <dc:creator>vincentwhn</dc:creator>
      <dc:date>2025-09-15T17:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use STOP_PROCESSING_IF in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753119#M119582</link>
      <description>&lt;P&gt;It's hard to evaluate the expressions without sample data, but I have doubts about the number of escape characters (particularly "\\s*").&amp;nbsp; Have you used &lt;A href="https://regex101.com" target="_blank" rel="noopener"&gt;regex101.com&lt;/A&gt; to verify the expressions?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 20:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753119#M119582</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-09-15T20:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use STOP_PROCESSING_IF in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753127#M119583</link>
      <description>&lt;P&gt;Thanks for your reply. The problem is solved.&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 08:08:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753127#M119583</guid>
      <dc:creator>vincentwhn</dc:creator>
      <dc:date>2025-09-16T08:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use STOP_PROCESSING_IF in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753135#M119585</link>
      <description>&lt;P&gt;Please share the solution.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 12:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753135#M119585</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-09-16T12:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use STOP_PROCESSING_IF in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753196#M119591</link>
      <description>&lt;P&gt;This is my sample log:&lt;BR /&gt;&lt;BR /&gt;{"AppAccessContext": {"AADSessionID": "f3a2b6d4-1234-4c89-9a67-8b2e5d7c9f01", "ClientAppId": "00000003-0000-0ff1-ce00-000000000000", "ClientAppName": "SharePoint Online", "CorrelationId": "e5d6a7b8-2345-4f90-8c12-9d8e7f6a5b4c", "TokenIssuedAtTime": "2025-09-16T05:12:33Z", "UniqueTokenId": "abc123xyz789", "UserObjectid": "d2f3a4b5-6789-4cde-9012-3456789abcde"}, "CreationTime": "2025-09-16T05:12:35Z", "Id": "9876543210", "Operation": "FileAccessed", "OrganizationId": "contoso.onmicrosoft.com", "RecordType": 6, "UserKey": "i:0#.f|membership|vincent.wong@contoso.com", "UserType": 0, "Version": 1, "Workload": "SharePoint", "ClientIP": "203.0.113.45", "UserId": "vincent.wong@contoso.com", "ApplicationiD": "spfx-app-12345", "AuthenticationType": "Federated", "BrowserName": "Edge", "BrowserVersion": "116.0.1938.81", "EventSource": "SharePoint", "GeoLocation": "HK", "IsManagedDevice": true, "ItemType": "File", "ListItemUniqueId": "b3c4d5e6-f789-4abc-9012-3456789def01", "Pleatform": "Windows", "Site": "&lt;A href="https://contoso.sharepoint.com/sites/ProjectX" target="_blank"&gt;https://contoso.sharepoint.com/sites/ProjectX&lt;/A&gt;", "UserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)", "WebId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "DeviceDisplayName": "Vincent-Laptop", "HighPriorityMediaProcessing": false, "ListBassType": 101, "ListServerTemplate": 101, "DestinationFileExtension": ".docx", "SourceFileExtension": ".docx", "SourceRelativeUrl": "/sites/ProjectX/Shared Documents/Report.docx", "SourceFileName": "Report.docx", "DestinationRelativeUrl": "/sites/ProjectX/Shared Documents/Report.docx", "DestinationFileName": "Report.docx", "ApplicationDisplayName": "Microsoft Office Word", "SiteUrl": "&lt;A href="https://contoso.sharepoint.com/sites/ProjectX-prd-test" target="_blank"&gt;https://contoso.sharepoint.com/sites/ProjectX-prd-test&lt;/A&gt;", "ObjectId": "&lt;A href="https://contoso.sharepoint.com/sites/ProjectX/Shared" target="_blank"&gt;https://contoso.sharepoint.com/sites/ProjectX/Shared&lt;/A&gt; Documents/Report.docx"}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I use the config below to control if the log masking is enabled or not:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[testlog]&lt;BR /&gt;RULESET-SharePoint_log_filter = SharePoint_log_filter_control, SharePoint_log_filter_rule1, SharePoint_log_filter_rule2, SharePoint_log_filter_rule3, SharePoint_log_filter_rule4&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[SharePoint_log_filter_control]&lt;BR /&gt;INGEST_EVAL = SharePoint_log_filter_control=if(match(_raw, "\"Workload\": \"SharePoint\".*\"SiteUrl\": \".*-prd.*\""), "match", "not_match")&lt;BR /&gt;STOP_PROCESSING_IF = SharePoint_log_filter_control=="not_match"&lt;/P&gt;&lt;P&gt;[SharePoint_log_filter_rule1]&lt;BR /&gt;INGEST_EVAL=_raw:=replace(_raw, "(\"(?!(?:Operation|SiteUrl|UserId|Workload))[^\"]+\"\\s*:\\s*(?:\\{[^{}]*\\}|\\[[^\\[\\]]*\\]|\"(?:[^\"\\\\]|\\\\.)*\"|[^,}\\r\\n]+))", "")&lt;/P&gt;&lt;P&gt;[SharePoint_log_filter_rule2]&lt;BR /&gt;INGEST_EVAL=_raw:=replace(_raw, "(,\\s+)+", ", ")&lt;/P&gt;&lt;P&gt;[SharePoint_log_filter_rule3]&lt;BR /&gt;INGEST_EVAL=_raw:=replace(_raw, ", }", "}")&lt;/P&gt;&lt;P&gt;[SharePoint_log_filter_rule4]&lt;BR /&gt;INGEST_EVAL=_raw:=replace(_raw, "{, ", "{")&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 02:59:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-STOP-PROCESSING-IF-in-transforms-conf/m-p/753196#M119591</guid>
      <dc:creator>vincentwhn</dc:creator>
      <dc:date>2025-09-17T02:59:40Z</dc:date>
    </item>
  </channel>
</rss>

