<?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 Regex for multiple Key value pair, after string in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571636#M101220</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am looking to extract automatically, all key value pairs, from the following event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oct 20 12:52:40 11.22.33.44 status: Info: &lt;STRONG&gt;Status:&lt;/STRONG&gt; CPULd 0 DskIO 0 RAMUtil 4 QKUsd 0 QKFre 8388608 CrtMID 184222 CrtICID 2257015 CrtDCID 83915 InjMsg 126359 InjRcp 133519 GenBncRcp 2695 RejRcp 39342 DrpMsg 6 SftBncEvnt 9183 CmpRcp 139771 HrdBncRcp 3372 DnsHrdBnc 560 5XXHrdBnc 2406 FltrHrdBnc 0 ExpHrdBnc 406 OtrHrdBnc 0 DlvRcp 136399 DelRcp 0 GlbUnsbHt 0 ActvRcp 0 UnatmptRcp 0 AtmptRcp 0 CrtCncIn 0 CrtCncOut 0 DnsReq 5081719 NetReq 2029480 CchHit 5092135 CchMis 1888266 CchEct 891535 CchExp 1239213 CPUTTm 283360 CPUETm 123729299 MaxIO 7211 RAMUsd 182837940 MMLen 0 DstInMem 5 ResCon 0 WorkQ 0 QuarMsgs 0 QuarQKUsd 0 LogUsd 6 SophLd 0 BMLd 0 CASELd 0 TotalLd 53 LogAvail 175G EuQ 0 EuqRls 0 CmrkLd 0 McafLd 0 SwIn 1743004 SwOut 1980200 SwPgIn 8219419 SwPgOut 19669768 RptLd 0 QtnLd 0 EncrQ 0 InjBytes 21864651864&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For that, I used the folowing regex:&lt;BR /&gt;&lt;STRONG&gt;(?&amp;lt;key&amp;gt;\S+)\s(?&amp;lt;value&amp;gt;\d+)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, I can not get a 100% match, because I only want this to be valid for all the data after "Status:" (in bold, in the example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me get a regex for this key value pair extraction?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 11:36:25 GMT</pubDate>
    <dc:creator>nmsaraujo</dc:creator>
    <dc:date>2021-10-20T11:36:25Z</dc:date>
    <item>
      <title>Regex for multiple Key value pair, after string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571636#M101220</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am looking to extract automatically, all key value pairs, from the following event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oct 20 12:52:40 11.22.33.44 status: Info: &lt;STRONG&gt;Status:&lt;/STRONG&gt; CPULd 0 DskIO 0 RAMUtil 4 QKUsd 0 QKFre 8388608 CrtMID 184222 CrtICID 2257015 CrtDCID 83915 InjMsg 126359 InjRcp 133519 GenBncRcp 2695 RejRcp 39342 DrpMsg 6 SftBncEvnt 9183 CmpRcp 139771 HrdBncRcp 3372 DnsHrdBnc 560 5XXHrdBnc 2406 FltrHrdBnc 0 ExpHrdBnc 406 OtrHrdBnc 0 DlvRcp 136399 DelRcp 0 GlbUnsbHt 0 ActvRcp 0 UnatmptRcp 0 AtmptRcp 0 CrtCncIn 0 CrtCncOut 0 DnsReq 5081719 NetReq 2029480 CchHit 5092135 CchMis 1888266 CchEct 891535 CchExp 1239213 CPUTTm 283360 CPUETm 123729299 MaxIO 7211 RAMUsd 182837940 MMLen 0 DstInMem 5 ResCon 0 WorkQ 0 QuarMsgs 0 QuarQKUsd 0 LogUsd 6 SophLd 0 BMLd 0 CASELd 0 TotalLd 53 LogAvail 175G EuQ 0 EuqRls 0 CmrkLd 0 McafLd 0 SwIn 1743004 SwOut 1980200 SwPgIn 8219419 SwPgOut 19669768 RptLd 0 QtnLd 0 EncrQ 0 InjBytes 21864651864&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For that, I used the folowing regex:&lt;BR /&gt;&lt;STRONG&gt;(?&amp;lt;key&amp;gt;\S+)\s(?&amp;lt;value&amp;gt;\d+)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, I can not get a 100% match, because I only want this to be valid for all the data after "Status:" (in bold, in the example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me get a regex for this key value pair extraction?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 11:36:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571636#M101220</guid>
      <dc:creator>nmsaraujo</dc:creator>
      <dc:date>2021-10-20T11:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for multiple Key value pair, after string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571638#M101221</link>
      <description>&lt;P&gt;You can do it in two extractions&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="Oct 20 12:52:40 11.22.33.44 status: Info: Status: CPULd 0 DskIO 0 RAMUtil 4 QKUsd 0 QKFre 8388608 CrtMID 184222 CrtICID 2257015 CrtDCID 83915 InjMsg 126359 InjRcp 133519 GenBncRcp 2695 RejRcp 39342 DrpMsg 6 SftBncEvnt 9183 CmpRcp 139771 HrdBncRcp 3372 DnsHrdBnc 560 5XXHrdBnc 2406 FltrHrdBnc 0 ExpHrdBnc 406 OtrHrdBnc 0 DlvRcp 136399 DelRcp 0 GlbUnsbHt 0 ActvRcp 0 UnatmptRcp 0 AtmptRcp 0 CrtCncIn 0 CrtCncOut 0 DnsReq 5081719 NetReq 2029480 CchHit 5092135 CchMis 1888266 CchEct 891535 CchExp 1239213 CPUTTm 283360 CPUETm 123729299 MaxIO 7211 RAMUsd 182837940 MMLen 0 DstInMem 5 ResCon 0 WorkQ 0 QuarMsgs 0 QuarQKUsd 0 LogUsd 6 SophLd 0 BMLd 0 CASELd 0 TotalLd 53 LogAvail 175G EuQ 0 EuqRls 0 CmrkLd 0 McafLd 0 SwIn 1743004 SwOut 1980200 SwPgIn 8219419 SwPgOut 19669768 RptLd 0 QtnLd 0 EncrQ 0 InjBytes 21864651864"




| rex "Status:\s(?&amp;lt;Status&amp;gt;.+)"
| rex max_match=0 field=Status "(?&amp;lt;key&amp;gt;\S+)\s(?&amp;lt;value&amp;gt;\d+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Oct 2021 11:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571638#M101221</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-20T11:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for multiple Key value pair, after string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571639#M101222</link>
      <description>&lt;P&gt;Alternatively, assuming none of your keys match short month names&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "(?&amp;lt;key&amp;gt;[A-Za-z]+)(?&amp;lt;!Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?&amp;lt;value&amp;gt;\d+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Oct 2021 11:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571639#M101222</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-20T11:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for multiple Key value pair, after string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571640#M101223</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; for the quick reply.&lt;/P&gt;&lt;P&gt;This worked perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 11:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-for-multiple-Key-value-pair-after-string/m-p/571640#M101223</guid>
      <dc:creator>nmsaraujo</dc:creator>
      <dc:date>2021-10-20T11:57:02Z</dc:date>
    </item>
  </channel>
</rss>

