<?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 Splunk Rex: Extracting fields of a string into a Column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486992#M136151</link>
    <description>&lt;P&gt;I'm a newbie to SPlunk REX trying to do some dashboards and need help in extracting fields of a particular variable&lt;BR /&gt;
i read old articles in SPlunk old questions but couldn't figured it out..&lt;BR /&gt;
Here in my case i want to extract only KB_List":"KB000119050,KB000119026,KB000119036" values to a column&lt;/P&gt;

&lt;P&gt;Expected output: as a table&lt;/P&gt;

&lt;P&gt;KB_Listed&lt;BR /&gt;
KB000119050,KB000119026,KB000119036&lt;/P&gt;

&lt;P&gt;i have tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| `rex field=_raw "KB_List\":\"(?&amp;lt;KB_List&amp;gt;[^\"])\""`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Message Snippet below:&lt;/P&gt;

&lt;P&gt;svc_log_ERROR","Impact":4.0,"CategoryId":"94296c474f356a0009019ffd0210c738","hasKBList":"true","lastNumOfAlerts":1,"splunkURL":false,"impactedInstances":"","highestSeverity":"Minor","Source":"hsym-plyfss01","reqEmail":"true","AlertGroup":"TIBCOP","reqPage":"",&lt;STRONG&gt;"KB_List":"KB000119050,KB000119026,KB000119036"&lt;/STRONG&gt;,"reqTicket":"true","autoTicket":true,"SupportGroup":"TESTPP","Environment":"UAT","Urgency":4.0,"AssetId":"AST000000000159689","LiveSupportGroup":"TESTPP","sentPageTo":"TESTPP"},"Notification":{"":{"requestId":"532938335"}},""&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:01:15 GMT</pubDate>
    <dc:creator>rczone</dc:creator>
    <dc:date>2020-09-30T03:01:15Z</dc:date>
    <item>
      <title>Splunk Rex: Extracting fields of a string into a Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486992#M136151</link>
      <description>&lt;P&gt;I'm a newbie to SPlunk REX trying to do some dashboards and need help in extracting fields of a particular variable&lt;BR /&gt;
i read old articles in SPlunk old questions but couldn't figured it out..&lt;BR /&gt;
Here in my case i want to extract only KB_List":"KB000119050,KB000119026,KB000119036" values to a column&lt;/P&gt;

&lt;P&gt;Expected output: as a table&lt;/P&gt;

&lt;P&gt;KB_Listed&lt;BR /&gt;
KB000119050,KB000119026,KB000119036&lt;/P&gt;

&lt;P&gt;i have tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| `rex field=_raw "KB_List\":\"(?&amp;lt;KB_List&amp;gt;[^\"])\""`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Message Snippet below:&lt;/P&gt;

&lt;P&gt;svc_log_ERROR","Impact":4.0,"CategoryId":"94296c474f356a0009019ffd0210c738","hasKBList":"true","lastNumOfAlerts":1,"splunkURL":false,"impactedInstances":"","highestSeverity":"Minor","Source":"hsym-plyfss01","reqEmail":"true","AlertGroup":"TIBCOP","reqPage":"",&lt;STRONG&gt;"KB_List":"KB000119050,KB000119026,KB000119036"&lt;/STRONG&gt;,"reqTicket":"true","autoTicket":true,"SupportGroup":"TESTPP","Environment":"UAT","Urgency":4.0,"AssetId":"AST000000000159689","LiveSupportGroup":"TESTPP","sentPageTo":"TESTPP"},"Notification":{"":{"requestId":"532938335"}},""&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486992#M136151</guid>
      <dc:creator>rczone</dc:creator>
      <dc:date>2020-09-30T03:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rex: Extracting fields of a string into a Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486993#M136152</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;... | rex "KB_List":"(?&amp;lt;KB_Listed&amp;gt;[^"]+)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 20:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486993#M136152</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-19T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rex: Extracting fields of a string into a Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486994#M136153</link>
      <description>&lt;P&gt;Error in 'SearchParser': Mismatched ']'. @richgalloway &lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 20:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486994#M136153</guid>
      <dc:creator>rczone</dc:creator>
      <dc:date>2019-11-19T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rex: Extracting fields of a string into a Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486995#M136154</link>
      <description>&lt;P&gt;tried this also  &lt;CODE&gt;rex  "KB_List":"(?[^\"]+)" | table KB&lt;/CODE&gt; but no use&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 20:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486995#M136154</guid>
      <dc:creator>rczone</dc:creator>
      <dc:date>2019-11-19T20:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rex: Extracting fields of a string into a Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486996#M136155</link>
      <description>&lt;P&gt;escape &lt;CODE&gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;try :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex "KB_List\":\"(?&amp;lt;KB_Listed&amp;gt;[^\"]+)" | table KB_Listed&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 20:54:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486996#M136155</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-11-19T20:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rex: Extracting fields of a string into a Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486997#M136156</link>
      <description>&lt;P&gt;@mayurr98  returning none ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "KB_List\":\"(?[^\"]+)" | table KB_list
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Nov 2019 20:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486997#M136156</guid>
      <dc:creator>rczone</dc:creator>
      <dc:date>2019-11-19T20:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rex: Extracting fields of a string into a Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486998#M136157</link>
      <description>&lt;P&gt;try this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.. | rex "KB_List\":\"(?&amp;lt;KB_Listed&amp;gt;[^\"]+)" | table KB_Listed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you are not putting the extracted value in the field. Copy the above query and run as it is.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486998#M136157</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-11-19T21:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Rex: Extracting fields of a string into a Column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486999#M136158</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172209"&gt;@mayurr98&lt;/a&gt; | rex "KB_List\":\"(?[^\"]+)" | table KB_Listed  this worked..thanks a ton&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Rex-Extracting-fields-of-a-string-into-a-Column/m-p/486999#M136158</guid>
      <dc:creator>rczone</dc:creator>
      <dc:date>2020-09-30T03:01:21Z</dc:date>
    </item>
  </channel>
</rss>

