<?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: DB Connect KEY=VALUE Extraction Fail in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/552928#M91696</link>
    <description>&lt;P&gt;Would you believe you're only missing a comma?&amp;nbsp; This works in regex101.com&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(\w+)="(.*?)",&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 25 May 2021 12:48:36 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-05-25T12:48:36Z</dc:date>
    <item>
      <title>DB Connect KEY=VALUE Extraction Fail</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/552926#M91695</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; I'm struggling to get a complete extraction on any fields that contain double quotes.&lt;/P&gt;&lt;P&gt;The payload:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-05-25 07:59:04.000, auditId="17864172953", groups_groupId="4639", groupName="some group name", people_personId="625841", users_userId="152321", userLogin="field-removed", userStaffFlag="false", auditIP="111.222.333.444", auditMod="Module", auditMessage="Module: "mod1" is not present in a check, Module: "mod2" is not present in a check, Module: "mod3" is not present in a check, Module: "mod4" is not present in a check, Module: "mod5" is not present in a check, Module: "mod6" is not present in a check, Module: "mod7" is not present in a check, Module: "mod8" is not present in a check, Module: "mod9" is not present in a check, Module: "mod10" is not present in a check", auditDate="2021-05-25 07:59:04.0", auditType="info", auditRID="88827e1f-d157-46d5-b1b4-20b91d4440a4", auditMicroSeconds="0.0000"&lt;/LI-CODE&gt;&lt;P&gt;In this example, it's the "auditMessage" key that will not extract completely and stops at the first "Module: "&amp;lt;--&lt;/P&gt;&lt;P&gt;The REGEX &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;(\w+)="(.*?)"&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Gets me most of the way there (regx101), but doesn't work in splunk.&lt;/P&gt;&lt;P&gt;My Fu has failed me.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 11:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/552926#M91695</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2021-05-25T11:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect KEY=VALUE Extraction Fail</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/552928#M91696</link>
      <description>&lt;P&gt;Would you believe you're only missing a comma?&amp;nbsp; This works in regex101.com&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(\w+)="(.*?)",&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 May 2021 12:48:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/552928#M91696</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-05-25T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect KEY=VALUE Extraction Fail</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/552942#M91699</link>
      <description>&lt;P&gt;HI Rich,&amp;nbsp; Thanks for the response.&amp;nbsp; I had already done that, works in reg101 but not in splunk&lt;/P&gt;&lt;P&gt;I've also come up with &lt;STRONG&gt;(?:([\w+]+)=(?:\")(.+?)(?:\",\s|\"$))&lt;/STRONG&gt;&amp;nbsp;which does exactly what I want on reg101 , but again doesn't work the same in Splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 07:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/552942#M91699</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2021-06-09T07:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect KEY=VALUE Extraction Fail</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/555091#M91958</link>
      <description>&lt;P&gt;So after a little more reading, this is a known issue with DBConnect.&amp;nbsp; The official work around is to use KV_MODE and then apply a search time extraction for the problematic fields.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;auditMessage="(?P&amp;lt;auditMessage&amp;gt;.+?)",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 13:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DB-Connect-KEY-VALUE-Extraction-Fail/m-p/555091#M91958</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2021-06-09T13:28:10Z</dc:date>
    </item>
  </channel>
</rss>

