<?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 parse specific value from a field value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423714#M121602</link>
    <description>&lt;P&gt;This did the trick, The ',' is what I was missing.....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt; | rex "EWT_Print=(?&amp;lt;EWT&amp;gt;[0-9]+)," 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is the query that worked for me. Thanks a lot&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 14:57:55 GMT</pubDate>
    <dc:creator>wicke_s</dc:creator>
    <dc:date>2019-06-18T14:57:55Z</dc:date>
    <item>
      <title>How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423702#M121590</link>
      <description>&lt;P&gt;&lt;EM&gt;Disclaimer : I'm new to Regex and using the Rex function&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I have a field "Message" that has the following string format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"EWT_Print=282, CIQ=1, Did not meet the threshold, 009s5td"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All the Message field values are going to have the same format "EWT_Print=[some number], CIQ=[some number], some text"&lt;/P&gt;

&lt;P&gt;I am trying to extract the value of the EWT_Print, in this example 282 and display it in a table, however, I always get an empty table when I try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;my base search&amp;gt; | rex field=Message "EWT_Print=(?&amp;lt;EWT&amp;gt;[0-9]+)*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 20:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423702#M121590</guid>
      <dc:creator>wicke_s</dc:creator>
      <dc:date>2019-06-14T20:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423703#M121591</link>
      <description>&lt;P&gt;Your regex looks good, although the &lt;CODE&gt;*&lt;/CODE&gt; is not needed.  It works in regex101.com.  Have you tried without the &lt;CODE&gt;*&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423703#M121591</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-06-14T21:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423704#M121592</link>
      <description>&lt;P&gt;Yes, I got the regex from regex101.com &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I tried without the * and it still doesn't work. I tried without the table and I could see I have at least 133 events matching the search, however the rex still doesn't work.&lt;/P&gt;

&lt;P&gt;Thanks for taking the time to look into this!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423704#M121592</guid>
      <dc:creator>wicke_s</dc:creator>
      <dc:date>2019-06-14T21:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423705#M121593</link>
      <description>&lt;P&gt;Are you searching in verbose mode?  Because verbose mode auto extracts key value pairs like these you have.&lt;/P&gt;

&lt;P&gt;If not in verbose mode you can use the '| extract' command to achieve the same result.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423705#M121593</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-06-14T21:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423706#M121594</link>
      <description>&lt;P&gt;Thanks for your reply! I am searching in verbose mode and I also tried the search with the "extract" keyword. Still returns empty table&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 22:33:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423706#M121594</guid>
      <dc:creator>wicke_s</dc:creator>
      <dc:date>2019-06-14T22:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423707#M121595</link>
      <description>&lt;P&gt;What's your full search?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 11:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423707#M121595</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-06-15T11:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423708#M121596</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;index&amp;gt; sourcetype=&amp;lt;sourcetype&amp;gt; Message="EWT_Print*" | rex field=Extended_Field.Message "EWT_Print=(?&amp;lt;EWT&amp;gt;[0-9]+)"| table EWT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2019 14:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423708#M121596</guid>
      <dc:creator>wicke_s</dc:creator>
      <dc:date>2019-06-17T14:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423709#M121597</link>
      <description>&lt;P&gt;Try:&lt;BR /&gt;
&lt;PRE&gt;... [ your search ] ... &lt;BR /&gt;
| rex "EWT_Print=(?&amp;lt;EWT&amp;gt;[^,]+),"&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;If that works, then try:&lt;BR /&gt;
&lt;PRE&gt;... [ your search ] ... &lt;BR /&gt;
| rex field=Message "EWT_Print=(?&amp;lt;EWT&amp;gt;[^,]+),"&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 17:25:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423709#M121597</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-17T17:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423710#M121598</link>
      <description>&lt;P&gt;Try renaming the field first&lt;BR /&gt;
...&lt;BR /&gt;
| rename Extended_Field.Message as message&lt;BR /&gt;
| rex field=message &lt;BR /&gt;
...&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 18:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423710#M121598</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-06-17T18:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423711#M121599</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval Message = "EWT_Print=282, CIQ=1, Did not meet the threshold, 009s5td" 
| rex field=Message "EWT_Print\=(?P&amp;lt;EWT&amp;gt;[\d]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jun 2019 12:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423711#M121599</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-06-18T12:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423712#M121600</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;base search&amp;gt; | rex field=Message "EWT_Print\=(?P&amp;lt;EWT&amp;gt;\d+)\,"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jun 2019 12:47:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423712#M121600</guid>
      <dc:creator>pranay_adla</dc:creator>
      <dc:date>2019-06-18T12:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423713#M121601</link>
      <description>&lt;P&gt;@wicke_s - Try this regex. (make sure field Message is not containing &lt;STRONG&gt;"&lt;/STRONG&gt;(quote) in value.)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^EWT_Print=(?&amp;lt;EWT_Printer&amp;gt;\d+),
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jun 2019 14:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423713#M121601</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-18T14:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse specific value from a field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423714#M121602</link>
      <description>&lt;P&gt;This did the trick, The ',' is what I was missing.....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt; | rex "EWT_Print=(?&amp;lt;EWT&amp;gt;[0-9]+)," 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is the query that worked for me. Thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 14:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-parse-specific-value-from-a-field-value/m-p/423714#M121602</guid>
      <dc:creator>wicke_s</dc:creator>
      <dc:date>2019-06-18T14:57:55Z</dc:date>
    </item>
  </channel>
</rss>

