<?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 get ptime from below string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433709#M171635</link>
    <description>&lt;P&gt;This is the below error : 'ptime:(?\w+)': Regex: unrecognized character after (? or (?-&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2019 07:54:19 GMT</pubDate>
    <dc:creator>Veeruswathi</dc:creator>
    <dc:date>2019-04-29T07:54:19Z</dc:date>
    <item>
      <title>How to get ptime from below string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433706#M171632</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;

&lt;P&gt;Below is my field "rtpmap:8 PCMA/8000,rtpmap:101 telephone-event/8000,ptime:20" I would like to get ptime from this , which is 20 . But sometimes i have the field coming as maxptime instead of ptime &lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Swathi&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 07:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433706#M171632</guid>
      <dc:creator>Veeruswathi</dc:creator>
      <dc:date>2019-04-29T07:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ptime from below string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433707#M171633</link>
      <description>&lt;P&gt;@veeruswathi&lt;/P&gt;

&lt;P&gt;try this:&lt;BR /&gt;
    | makeresults | eval test="rtpmap:8 PCMA/8000,rtpmap:101 telephone-event/8000,ptime:20" | rex field=test "ptime:(?&lt;PTIME&gt;\w+)"&lt;/PTIME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 07:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433707#M171633</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-04-29T07:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ptime from below string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433708#M171634</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Give a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval msg="rtpmap:8 PCMA/8000,rtpmap:101 telephone-event/8000,maxptime:20" 
| makemv delim="," msg 
| rex field=msg "(ptime:|maxptime:)(?P&amp;lt;ptime&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Apr 2019 07:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433708#M171634</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-04-29T07:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ptime from below string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433709#M171635</link>
      <description>&lt;P&gt;This is the below error : 'ptime:(?\w+)': Regex: unrecognized character after (? or (?-&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 07:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433709#M171635</guid>
      <dc:creator>Veeruswathi</dc:creator>
      <dc:date>2019-04-29T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ptime from below string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433710#M171636</link>
      <description>&lt;P&gt;Awesome!! &lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 07:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433710#M171636</guid>
      <dc:creator>Veeruswathi</dc:creator>
      <dc:date>2019-04-29T07:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ptime from below string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433711#M171637</link>
      <description>&lt;P&gt;Why not just use extract?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="rtpmap:8 PCMA/8000,rtpmap:101 telephone-event/8000,maxptime:20,ptime:20" 
| extract pairdelim=",", kvdelim=":" mv_add=t
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ptime-from-below-string/m-p/433711#M171637</guid>
      <dc:creator>jason_prondak</dc:creator>
      <dc:date>2019-04-29T16:11:06Z</dc:date>
    </item>
  </channel>
</rss>

