<?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 make my regex more efficient? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562015#M100110</link>
    <description>&lt;P&gt;Can you share sample event?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 05:28:45 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-08-04T05:28:45Z</dc:date>
    <item>
      <title>How to make my regex more efficient?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/561998#M100100</link>
      <description>&lt;P&gt;Hi, I've exceeded my&amp;nbsp;configured match_limit in limits.conf with this regex:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"log":\s"(?&amp;lt;log_source&amp;gt;.*?)\s(?&amp;lt;ISO8601&amp;gt;.*?)\| (?&amp;lt;exchangeId&amp;gt;.*?)\|(?&amp;lt;AUDIT_trackingId&amp;gt;.*?)\| (?&amp;lt;client_ip&amp;gt;.*?)\|(?&amp;lt;FAPI_ip&amp;gt;.*?)\|(?&amp;lt;AUDIT_roundTripMS&amp;gt;.*?) ms\| (?&amp;lt;AUDIT_proxyRoundTripMS&amp;gt;.*?) ms\| (?&amp;lt;AUDIT_userInfoRoundTripMS&amp;gt;.*?) ms\| (?&amp;lt;AUDIT_resource&amp;gt;.*?)\s\[\]\s\/(?&amp;lt;AUDIT_subject&amp;gt;.*?)\/\*\:(?&amp;lt;dest_port&amp;gt;.*?)\|(?&amp;lt;AUDIT_authMech&amp;gt;.*?)\|(?&amp;lt;AUDIT_scopes&amp;gt;.*?)\| (?&amp;lt;AUDIT_client&amp;gt;.*?)\| (?&amp;lt;AUDIT_method&amp;gt;.*?)\| (?&amp;lt;AUDIT_requestUri&amp;gt;[^\s\?"|]++)(?&amp;lt;uri_query&amp;gt;\?[^\s"]*)?.*?\| (?&amp;lt;AUDIT_responseCode&amp;gt;.*?)\|(?&amp;lt;AUDIT_failedRuleType&amp;gt;.*?)\|(?&amp;lt;AUDIT_failedRuleName&amp;gt;.*?)\| (?&amp;lt;AUDIT_applicationName&amp;gt;.*?)\| (?&amp;lt;AUDIT_resourceName&amp;gt;.*?)\| (?&amp;lt;AUDIT_pathPrefix&amp;gt;.*?)\s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make it more efficient? Please advise&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 02:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/561998#M100100</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2021-08-04T02:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my regex more efficient?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562003#M100105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228215"&gt;@ebs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format of logs seems PSV format why don't you use delimiter based extractions?&lt;/P&gt;&lt;P&gt;Do not use * be specific, the list goes on...&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 02:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562003#M100105</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-04T02:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my regex more efficient?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562009#M100108</link>
      <description>&lt;P&gt;Because its not all delimer based. If you could give me an example of making this extraction more efficient I would be apppreciative&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 04:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562009#M100108</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2021-08-04T04:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my regex more efficient?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562014#M100109</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp; said, don't use * and be more specific e.g. (?&amp;lt;auditid&amp;gt;\S+) for non-whitespaces, but you know your data best so you should be able to define the pattern more rigorously&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 05:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562014#M100109</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-04T05:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my regex more efficient?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562015#M100110</link>
      <description>&lt;P&gt;Can you share sample event?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 05:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-my-regex-more-efficient/m-p/562015#M100110</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-04T05:28:45Z</dc:date>
    </item>
  </channel>
</rss>

