<?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 Need help regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-regex/m-p/578956#M201780</link>
    <description>&lt;P&gt;We need to capture field value for the below CEF log pattern&amp;nbsp;&lt;/P&gt;&lt;P&gt;CEF:0|vendor|product|1.1.0.15361|6099|DirectoryAssetSyncSucceeded|1|cn1label=EventUserId cn1=-3 cs1label=EventUserDisplayName cs1=Automated System cs2label=EventUserDomainName cs2= cn2label=AssetId cn2=16699 cs3label=AssetName cs3=ABC.LOCAL AD cn3label=AssetPartitionId cn3=7 cs4label=AssetPartitionName cs4=XYZ.LOCAL partition cs5label=TaskId cs5=9ec9aa87-61b9-11ec-926f-3123456edt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the below regex&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(?:([\d\w]+)label=(?&amp;lt;_KEY_1&amp;gt;\S+))(?=.*\1=(?&amp;lt;_VAL_1&amp;gt;[^=]+)(?=$|\s+[\w\d]+=))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunatelly it is not taking the blank one, like cs2= , which doesn't contain anything so EventUserDomainName should be blank&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly suggest&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 17:48:13 GMT</pubDate>
    <dc:creator>pavanbmishra</dc:creator>
    <dc:date>2021-12-20T17:48:13Z</dc:date>
    <item>
      <title>Need help regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-regex/m-p/578956#M201780</link>
      <description>&lt;P&gt;We need to capture field value for the below CEF log pattern&amp;nbsp;&lt;/P&gt;&lt;P&gt;CEF:0|vendor|product|1.1.0.15361|6099|DirectoryAssetSyncSucceeded|1|cn1label=EventUserId cn1=-3 cs1label=EventUserDisplayName cs1=Automated System cs2label=EventUserDomainName cs2= cn2label=AssetId cn2=16699 cs3label=AssetName cs3=ABC.LOCAL AD cn3label=AssetPartitionId cn3=7 cs4label=AssetPartitionName cs4=XYZ.LOCAL partition cs5label=TaskId cs5=9ec9aa87-61b9-11ec-926f-3123456edt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the below regex&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(?:([\d\w]+)label=(?&amp;lt;_KEY_1&amp;gt;\S+))(?=.*\1=(?&amp;lt;_VAL_1&amp;gt;[^=]+)(?=$|\s+[\w\d]+=))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunatelly it is not taking the blank one, like cs2= , which doesn't contain anything so EventUserDomainName should be blank&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly suggest&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 17:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-regex/m-p/578956#M201780</guid>
      <dc:creator>pavanbmishra</dc:creator>
      <dc:date>2021-12-20T17:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-regex/m-p/578960#M201783</link>
      <description>&lt;LI-CODE lang="markup"&gt;(?:([\d\w]+)label=(?&amp;lt;_KEY_1&amp;gt;\S+))(?=.*\1=(?&amp;lt;_VAL_1&amp;gt;[^=]*?)(?=$|\s+[\w\d]+=))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Dec 2021 18:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-regex/m-p/578960#M201783</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-20T18:13:31Z</dc:date>
    </item>
  </channel>
</rss>

