<?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: How to extract values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values/m-p/461413#M191397</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw= "\"SeqNo\":4433221,\"T_CODE\":\"ABC\",\"VALUE\":983123456,\"VALUE2\":\"0000000000\","

| rename COMMENT AS "Everything above generates sample event data; everything below is your solution."

| rex max_match=0 "(?&amp;lt;KEY_1&amp;gt;[^:\"]+)\"?:\"?(?&amp;lt;VAL_1&amp;gt;[^:\"]+)\"?,"
| eval _raw = mvzip(KEY_1, VAL_1, "=")
| kv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I named them this way for a reason; search for &lt;CODE&gt;_KEY_1&lt;/CODE&gt; on this page:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 11:10:21 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-12-13T11:10:21Z</dc:date>
    <item>
      <title>How to extract values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values/m-p/461411#M191395</link>
      <description>&lt;P&gt;My Log Contains&lt;/P&gt;

&lt;P&gt;"SeqNo":4433221,"T_CODE":"ABC","&lt;STRONG&gt;VALUE&lt;/STRONG&gt;":983123456,"VALUE2":"0000000000",&lt;/P&gt;

&lt;P&gt;I am in need of VALUE field  which will display 983123456 as an output tried with this query&lt;/P&gt;

&lt;P&gt;|rex VALUE="(?[^\d*])" |table VALUE&lt;/P&gt;

&lt;P&gt;please help&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 06:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values/m-p/461411#M191395</guid>
      <dc:creator>valpravin</dc:creator>
      <dc:date>2019-12-13T06:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values/m-p/461412#M191396</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Check this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval temp= "\"SeqNo\":4433221,\"T_CODE\":\"ABC\",\"VALUE\":983123456,\"VALUE2\":\"0000000000\", "
|rex field=temp "VALUE\"\:(?P&amp;lt;value&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Dec 2019 06:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values/m-p/461412#M191396</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-12-13T06:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values/m-p/461413#M191397</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw= "\"SeqNo\":4433221,\"T_CODE\":\"ABC\",\"VALUE\":983123456,\"VALUE2\":\"0000000000\","

| rename COMMENT AS "Everything above generates sample event data; everything below is your solution."

| rex max_match=0 "(?&amp;lt;KEY_1&amp;gt;[^:\"]+)\"?:\"?(?&amp;lt;VAL_1&amp;gt;[^:\"]+)\"?,"
| eval _raw = mvzip(KEY_1, VAL_1, "=")
| kv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I named them this way for a reason; search for &lt;CODE&gt;_KEY_1&lt;/CODE&gt; on this page:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 11:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-values/m-p/461413#M191397</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-13T11:10:21Z</dc:date>
    </item>
  </channel>
</rss>

