<?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 Cut syslog messages, strugeling on commas between quotes in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/416776#M253</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Demisto get a syslog message from panorama from threat log.&lt;/P&gt;&lt;P&gt;To clarify my problem, here a simplified syslog output, which Demisto gets in:&lt;/P&gt;&lt;P&gt;1,2,3,"jon,doe",5,6,7 (Example: Mail Subject)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Problem lies on the syslog incoming Mapper, I would like to cut the syslog message into the right field, (here "Subject")&lt;/P&gt;&lt;P&gt;So, I use as first transformer "Replace match (&lt;SPAN&gt;String&lt;/SPAN&gt;)" to get rid of the commas between the "&lt;/P&gt;&lt;P&gt;the only one reasonable regex string I found so far is that one:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;,(?=[^"]*"[^"]*(?:"[^"]*"[^"]*)*$)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But since Demisto uses for&amp;nbsp;"Replace match (&lt;SPAN&gt;String&lt;/SPAN&gt;)" those Regex-Implementation (&lt;A href="https://github.com/google/re2/wiki/Syntax" target="_blank"&gt;https://github.com/google/re2/wiki/Syntax&lt;/A&gt;) the ?= regex is not working (NOT IMPLEMENTED)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is any one here with a solution regarding those "commas between double quotes"? Maybe there is a way on Panorama to escape those commas with ie "=2C"?&lt;/P&gt;&lt;P&gt;Any help will be apriciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jul 2021 08:23:55 GMT</pubDate>
    <dc:creator>r_buchwalder</dc:creator>
    <dc:date>2021-07-02T08:23:55Z</dc:date>
    <item>
      <title>Cut syslog messages, strugeling on commas between quotes</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/416776#M253</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Demisto get a syslog message from panorama from threat log.&lt;/P&gt;&lt;P&gt;To clarify my problem, here a simplified syslog output, which Demisto gets in:&lt;/P&gt;&lt;P&gt;1,2,3,"jon,doe",5,6,7 (Example: Mail Subject)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Problem lies on the syslog incoming Mapper, I would like to cut the syslog message into the right field, (here "Subject")&lt;/P&gt;&lt;P&gt;So, I use as first transformer "Replace match (&lt;SPAN&gt;String&lt;/SPAN&gt;)" to get rid of the commas between the "&lt;/P&gt;&lt;P&gt;the only one reasonable regex string I found so far is that one:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;,(?=[^"]*"[^"]*(?:"[^"]*"[^"]*)*$)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But since Demisto uses for&amp;nbsp;"Replace match (&lt;SPAN&gt;String&lt;/SPAN&gt;)" those Regex-Implementation (&lt;A href="https://github.com/google/re2/wiki/Syntax" target="_blank"&gt;https://github.com/google/re2/wiki/Syntax&lt;/A&gt;) the ?= regex is not working (NOT IMPLEMENTED)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is any one here with a solution regarding those "commas between double quotes"? Maybe there is a way on Panorama to escape those commas with ie "=2C"?&lt;/P&gt;&lt;P&gt;Any help will be apriciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 08:23:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/416776#M253</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-07-02T08:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cut syslog messages, strugeling on commas between quotes</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/420787#M265</link>
      <description>&lt;P&gt;If I understand correctly, you'd like for an input field like '&lt;SPAN&gt;1,2,3,"jon,doe",5,6,7' to be transformed into just 'jon,doe' and XSOAR's implementation of regex does not include the positive look ahead operator.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps this could do what you're looking for:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;First, use the '&lt;/SPAN&gt;From string' transformer with one double quote for the 'from' value&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Second, use the 'To&amp;nbsp;&lt;/SPAN&gt;string' transformer with one double quote for the 'to' value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When its done it should look something like this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;From string (from: ")&lt;BR /&gt;To string (to: ")&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 17:42:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/420787#M265</guid>
      <dc:creator>atullo</dc:creator>
      <dc:date>2021-07-20T17:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cut syslog messages, strugeling on commas between quotes</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/429654#M317</link>
      <description>&lt;P&gt;Hello Atullo&lt;/P&gt;&lt;P&gt;The solution sounds fine, but Wildfire's syslog has more than one field with "-s in it.&lt;/P&gt;&lt;P&gt;And I would like to use it in a mapper, so there are 78 mappings for each Syslog-Entry. And this is only for Wildfire-Mapping.&lt;/P&gt;&lt;P&gt;is there no easier way?&lt;BR /&gt;I think that this is a "normal" syslog behavior, that commas are present in the comments inside of ".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:43:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/429654#M317</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-08-27T09:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cut syslog messages, strugeling on commas between quotes</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/429660#M318</link>
      <description>&lt;P&gt;Roger,&lt;/P&gt;&lt;P&gt;Thanks for providing that&amp;nbsp;&lt;SPAN&gt;simplified syslog output in your original&amp;nbsp;post. Could you provide an actual syslog message? Please redact anything sensitive of course.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 11:13:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/429660#M318</guid>
      <dc:creator>atullo</dc:creator>
      <dc:date>2021-08-27T11:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cut syslog messages, strugeling on commas between quotes</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/430088#M322</link>
      <description>&lt;P&gt;Hello Atullo&lt;/P&gt;&lt;P&gt;So, here one example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1,2021/08/26 15:03:56,013201006616,THREAT,wildfire,2305,2021/08/26 15:03:51,1.1.1.1,2.2.2.2,0.0.0.0,0.0.0.0,SMTP-Traffic,,,smtp-base,vsys0,DMZ,EXT,ae2.2,ae1.1,PANORAMA,2021/08/26 15:03:51,1015351,1,58020,25,0,0,0x1102000,tcp,allow,"http://&amp;lt;url&amp;gt;/r/?id=tc08d19,8cb4a0,9b03889&amp;amp;p1=%40kjsI",Email Link(52143),phishing,high,client-to-server,6951421833034849569,0xa000000000000000,&amp;lt;countr&amp;gt;,10.0.0.0-10.255.255.255,0,,0,&amp;lt;sha256&amp;gt;,eu.wildfire.paloaltonetworks.com,0,,email-link,,,&amp;lt;sender-Email&amp;gt;,"Buy It, Mike!",&amp;lt;recipient Email&amp;gt;,5131320962,2060,1816,0,0,DMZ-1,&amp;lt;machinename&amp;gt;,,,,,0,,0,,N/A,unknown,WildFire-0,0x0,0,4294967295,,,&amp;lt;code&amp;gt;,0,&lt;/LI-CODE&gt;&lt;P&gt;I've replaced some stuff with &amp;lt;&amp;gt; and modified IP's, vlans etc.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 09:02:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/cut-syslog-messages-strugeling-on-commas-between-quotes/m-p/430088#M322</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-08-30T09:02:08Z</dc:date>
    </item>
  </channel>
</rss>

