<?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: regex field extraction on field changing data value properties in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288307#M162040</link>
    <description>&lt;P&gt;this selects msg filed, i want the value of the field to be selected, like in above example&lt;/P&gt;

&lt;P&gt;the msg values that is.. highlighted in bold. &lt;/P&gt;

&lt;P&gt;"msg" :"&lt;STRONG&gt;35556&lt;/STRONG&gt;"&lt;BR /&gt;
"msg" :"&lt;STRONG&gt;&amp;lt;&amp;lt;÷] {&amp;lt;} ;;&lt;/STRONG&gt;"&lt;BR /&gt;
"msg" :"&lt;STRONG&gt;ycuvuuu jvbigg buivuv&lt;/STRONG&gt;"&lt;BR /&gt;
"msg" :"** **"&lt;/P&gt;</description>
    <pubDate>Mon, 26 Mar 2018 08:03:42 GMT</pubDate>
    <dc:creator>VI371887</dc:creator>
    <dc:date>2018-03-26T08:03:42Z</dc:date>
    <item>
      <title>regex field extraction on field changing data value properties</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288305#M162038</link>
      <description>&lt;P&gt;hi i am having  issue extracting fields from splunk field extraction and rex command&lt;/P&gt;

&lt;P&gt;with msg field&lt;/P&gt;

&lt;P&gt;it's has different values can be numbers, strings, path, punctuations, blank space like shown below.&lt;/P&gt;

&lt;P&gt;"msg" :"35556"&lt;BR /&gt;
"msg" :"&amp;lt;&amp;lt;÷] {&amp;lt;} ;;"&lt;BR /&gt;
"msg" :"ycuvuuu jvbigg buivuv"&lt;BR /&gt;
"msg" :" "&lt;/P&gt;

&lt;P&gt;now problem is, i have written rex as&lt;BR /&gt;
\msg\":(? \". *\") \,&lt;/P&gt;

&lt;P&gt;but it returns value which following msg field.&lt;/P&gt;

&lt;P&gt;"msg" :"vjvuv igivc uvviv", "origin" :"abcgc", "time" :23.45677", &lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 07:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288305#M162038</guid>
      <dc:creator>VI371887</dc:creator>
      <dc:date>2018-03-26T07:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction on field changing data value properties</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288306#M162039</link>
      <description>&lt;P&gt;Hi @VI371887,&lt;BR /&gt;
Try this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex "msg\"\s:\"(?&amp;lt;msg&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Mar 2018 07:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288306#M162039</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-03-26T07:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction on field changing data value properties</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288307#M162040</link>
      <description>&lt;P&gt;this selects msg filed, i want the value of the field to be selected, like in above example&lt;/P&gt;

&lt;P&gt;the msg values that is.. highlighted in bold. &lt;/P&gt;

&lt;P&gt;"msg" :"&lt;STRONG&gt;35556&lt;/STRONG&gt;"&lt;BR /&gt;
"msg" :"&lt;STRONG&gt;&amp;lt;&amp;lt;÷] {&amp;lt;} ;;&lt;/STRONG&gt;"&lt;BR /&gt;
"msg" :"&lt;STRONG&gt;ycuvuuu jvbigg buivuv&lt;/STRONG&gt;"&lt;BR /&gt;
"msg" :"** **"&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288307#M162040</guid>
      <dc:creator>VI371887</dc:creator>
      <dc:date>2018-03-26T08:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: regex field extraction on field changing data value properties</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288308#M162041</link>
      <description>&lt;P&gt;the above regex selects value for msg field as highlighted.&lt;BR /&gt;
try this run anywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval _raw="\"msg\" :\"35556\""|rex "msg\"\s:\"(?&amp;lt;message&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Mar 2018 10:50:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-field-extraction-on-field-changing-data-value-properties/m-p/288308#M162041</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-03-26T10:50:52Z</dc:date>
    </item>
  </channel>
</rss>

