<?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: Extracting fields and values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145792#M40669</link>
    <description>&lt;P&gt;Hi Mus,&lt;/P&gt;

&lt;P&gt;the results should  be  in tabular from with headers as below:&lt;/P&gt;

&lt;P&gt;headers are : Codec,PID,Average Rate,Min Rate,Max Rate &lt;BR /&gt;
and their respective values.&lt;/P&gt;

&lt;P&gt;For example for Codec values will be mpeg-1 audio&lt;BR /&gt;
[h.264 video,&lt;BR /&gt;
mpeg-1 audio,&lt;BR /&gt;
h.264 video.&lt;BR /&gt;
and  for PID values will be 111&lt;BR /&gt;
110,&lt;BR /&gt;
112,&lt;BR /&gt;
120&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2014 12:28:43 GMT</pubDate>
    <dc:creator>kavyatim</dc:creator>
    <dc:date>2014-04-29T12:28:43Z</dc:date>
    <item>
      <title>Extracting fields and values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145789#M40666</link>
      <description>&lt;P&gt;Hi , I have data in the below format:&lt;/P&gt;

&lt;P&gt;[mpeg-1 audio, Service 1, PID 111] [Average rate 0.201 Mbits/s] [Min rate 0.199 Mbits/s] [Max rate 0.203 Mbits/s] [h.264 video, Service 1, PID 110] [Average rate 6.491 Mbits/s] [Min rate 6.474 Mbits/s] [Max rate 6.521 Mbits/s] [mpeg-1 audio, Service 1, PID 112] [Average rate 0.138 Mbits/s] [Min rate 0.135 Mbits/s] [Max rate 0.140 Mbits/s] [PMT, Service 2, PID 200] [Average rate 0.015 Mbits/s] [Min rate 0.015 Mbits/s] [Max rate 0.017 Mbits/s] [h.264 video, Service 2, PID 120] [Average rate 0.208 Mbits/s] [Min rate 0.193 Mbits/s] [Max rate 0.226 Mbits/s]&lt;/P&gt;

&lt;P&gt;and I want to extract data as in the below format: Codec PID Average Rate Mbits/s Min Rate Mbits/s Max Rate Mbits/s mpeg-1 audio 111 0.201 0.199 0.203 [h.264 video 110 6.491 6.474 6.521 mpeg-1 audio 112 0.138 0.135 0.14 h.264 video 120 0.208 0.193 0.226&lt;/P&gt;

&lt;P&gt;Can any one help me to extract using regex?&lt;/P&gt;

&lt;P&gt;Thanking in advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 12:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145789#M40666</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-29T12:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields and values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145790#M40667</link>
      <description>&lt;P&gt;could you pleas reformat your result in better/nicer a way. Currently it is hard to determine what it should look like&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 12:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145790#M40667</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-29T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields and values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145791#M40668</link>
      <description>&lt;P&gt;You want to extract these fields:&lt;/P&gt;

&lt;P&gt;Codec &lt;BR /&gt;
PID &lt;BR /&gt;
Average Rate Mbits/s &lt;BR /&gt;
Min Rate Mbits/s &lt;BR /&gt;
Max Rate Mbits/s &lt;/P&gt;

&lt;P&gt;With these values?&lt;/P&gt;

&lt;P&gt;mpeg-1 audio &lt;BR /&gt;
111 &lt;BR /&gt;
0.201 &lt;BR /&gt;
0.199 &lt;BR /&gt;
0.203 &lt;/P&gt;

&lt;P&gt;h.264 video &lt;BR /&gt;
110 &lt;BR /&gt;
6.491 &lt;BR /&gt;
6.474 &lt;BR /&gt;
6.521 &lt;/P&gt;

&lt;P&gt;mpeg-1 audio &lt;BR /&gt;
112 &lt;BR /&gt;
0.138 &lt;BR /&gt;
0.135 &lt;BR /&gt;
0.14 &lt;/P&gt;

&lt;P&gt;h.264 video &lt;BR /&gt;
120 &lt;BR /&gt;
0.208 &lt;BR /&gt;
0.193 &lt;BR /&gt;
0.226&lt;/P&gt;

&lt;P&gt;Have you tried the automated field extractor?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 12:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145791#M40668</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-04-29T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields and values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145792#M40669</link>
      <description>&lt;P&gt;Hi Mus,&lt;/P&gt;

&lt;P&gt;the results should  be  in tabular from with headers as below:&lt;/P&gt;

&lt;P&gt;headers are : Codec,PID,Average Rate,Min Rate,Max Rate &lt;BR /&gt;
and their respective values.&lt;/P&gt;

&lt;P&gt;For example for Codec values will be mpeg-1 audio&lt;BR /&gt;
[h.264 video,&lt;BR /&gt;
mpeg-1 audio,&lt;BR /&gt;
h.264 video.&lt;BR /&gt;
and  for PID values will be 111&lt;BR /&gt;
110,&lt;BR /&gt;
112,&lt;BR /&gt;
120&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 12:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145792#M40669</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-29T12:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields and values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145793#M40670</link>
      <description>&lt;P&gt;This should get you started:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\[(&amp;lt;?Codec&amp;gt;[^,]*),[\s\S]*PID\s(?&amp;lt;PID&amp;gt;\d*)\]\s\[Average rate\s(?&amp;lt;AvgRate&amp;gt;[\d\.]*)[\s\S]*\]\s\[Min rate\s(?&amp;lt;MinRate&amp;gt;[\d\.]*)[\s\S]*\]\s\[Max rate\s(?&amp;lt;MaxRate&amp;gt;[\d\.]*)[\s\S]*\]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Apr 2014 13:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-and-values/m-p/145793#M40670</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-04-29T13:14:55Z</dc:date>
    </item>
  </channel>
</rss>

