<?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 is working in cisco asa add-on but get error if the same regex is used in UI with regex command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-is-working-in-cisco-asa-add-on-but-get-error-if-the-same/m-p/517045#M145357</link>
    <description>&lt;P&gt;According to regex101.com, there are two incomplete capture groups. Adding a couple of parentheses solves this but I am not sure if they are in the right place for what you are trying to extract&lt;/P&gt;&lt;P&gt;| regex "\s+(?:from|for|src(?! user)) (?:(\S+):)[\w-]*?(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3})(?:\/(\w+))?&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(?:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;\((?:([\S^\]+)\)?([\w\-_]+)\))?&lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;\s*\(?(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3})?\/?(\d+)?\)?\s*&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(?:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;\((?:([\S^\]+)\)?([\w\-_]+)\))?&lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;"&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2020 15:19:53 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-08-31T15:19:53Z</dc:date>
    <item>
      <title>regex is working in cisco asa add-on but get error if the same regex is used in UI with regex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-is-working-in-cisco-asa-add-on-but-get-error-if-the-same/m-p/517034#M145354</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have the following regex from cisco asa add-on default transforms.conf:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cisco_source_ipv4]&lt;BR /&gt;REGEX = \s+(?:from|for|src(?! user)) (?:(\S+):)[\w-]*?(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3})(?:\/(\w+))?(?:\((?:([\S^\\]+)\\)?([\w\-_]+)\))?\s*\(?(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3})?\/?(\d+)?\)?\s*(?:\((?:([\S^\\]+)\\)?([\w\-_]+)\))?&lt;BR /&gt;FORMAT = src_zone::$1 src_ip::$2 src_port::$3 src_nt_domain::$4 src_user::$5 src_translated_ip::$6 src_translated_port::$7 src_nt_domain::$8 src_user::$9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that If I try to run the regex from UI, I get error :&lt;BR /&gt;&lt;SPAN&gt;Error in 'SearchOperator:regex': The regex '\s+(?:from|for|src(?! user)) (?:(\S+):)[\w-]*?(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3})(?:\/(\w+))?(?:\((?:([\S^\]+)\)?([\w\-_]+)\))?\s*\(?(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3})?\/?(\d+)?\)?\s*(?:\((?:([\S^\]+)\)?([\w\-_]+)\))?' is invalid. Regex: missing closing parenthesis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The add-on is working fine as well as search time field extraction so obviously the regex is working fine from transforms.conf but not in UI using regex command.&lt;/P&gt;&lt;P&gt;Someone can help?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 13:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-is-working-in-cisco-asa-add-on-but-get-error-if-the-same/m-p/517034#M145354</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2020-08-31T13:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: regex is working in cisco asa add-on but get error if the same regex is used in UI with regex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-is-working-in-cisco-asa-add-on-but-get-error-if-the-same/m-p/517045#M145357</link>
      <description>&lt;P&gt;According to regex101.com, there are two incomplete capture groups. Adding a couple of parentheses solves this but I am not sure if they are in the right place for what you are trying to extract&lt;/P&gt;&lt;P&gt;| regex "\s+(?:from|for|src(?! user)) (?:(\S+):)[\w-]*?(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3})(?:\/(\w+))?&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(?:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;\((?:([\S^\]+)\)?([\w\-_]+)\))?&lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;\s*\(?(\d{1,3}\.\d{1,3}.\d{1,3}.\d{1,3})?\/?(\d+)?\)?\s*&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(?:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;\((?:([\S^\]+)\)?([\w\-_]+)\))?&lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 15:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-is-working-in-cisco-asa-add-on-but-get-error-if-the-same/m-p/517045#M145357</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-08-31T15:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: regex is working in cisco asa add-on but get error if the same regex is used in UI with regex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-is-working-in-cisco-asa-add-on-but-get-error-if-the-same/m-p/517160#M145399</link>
      <description>&lt;P&gt;Which regex do you see errors for ? The first one or the one I have paste from the error? Because I noticed now that this one from the error is slightly different from the original and if I paste it in regex101 , then yes, there is error but as far as I see there is no error in the original regex if pasted in regex101, isn't that correct?&lt;/P&gt;&lt;P&gt;Its strange why splunk has changes on the regex by itself , I guess this is where the error is coming from . Maybe these escaping char makes some bad things ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 06:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-is-working-in-cisco-asa-add-on-but-get-error-if-the-same/m-p/517160#M145399</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2020-09-01T06:44:39Z</dc:date>
    </item>
  </channel>
</rss>

