<?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 log data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144503#M40216</link>
    <description>&lt;P&gt;Try again, there were missing backslash&lt;/P&gt;</description>
    <pubDate>Mon, 28 Apr 2014 08:40:31 GMT</pubDate>
    <dc:creator>gfuente</dc:creator>
    <dc:date>2014-04-28T08:40:31Z</dc:date>
    <item>
      <title>extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144500#M40213</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
i have data in following format&lt;BR /&gt;
PacketPos[503081044] PosInPacket[ 38] NALlength[11634] NAL[98983] Type[Non IDR slice]FrameType[P] DecodingIndex[32207] PresentationIndex[32211] POC[32262] frame_num[83] Structure[TopField] SPSid[0] PPSid[0] PTS[217794471] DTS[217785462]&lt;BR /&gt;
how will i extract fields and their values using regex. . &lt;/P&gt;

&lt;P&gt;Kindly help me in writing regex for this. . .&lt;/P&gt;

&lt;P&gt;Thanking in advance,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 07:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144500#M40213</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-28T07:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144501#M40214</link>
      <description>&lt;P&gt;[hide preview]  49 characters / 6 words&lt;BR /&gt;
Hello&lt;/P&gt;

&lt;P&gt;Try using this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "^\w+(?&amp;lt;PacketPos&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;PosInPacket&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;NALlength&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;NAL&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;Type&amp;gt;\[[^\]]+\])\s?\w+(?&amp;lt;FrameType&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;DecodingIndex&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;PresentationIndex&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;POC&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;frame_num&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;Structure&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;SPSid&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;PPSid&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;PTS&amp;gt;\[[^\]]+\])\s\w+(?&amp;lt;DTS&amp;gt;\[[^\]]+\])" |...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it helps&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 07:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144501#M40214</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2014-04-28T07:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144502#M40215</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;Thank you very for your answer. . &lt;BR /&gt;
Getting below error ,can you correct the error. &lt;BR /&gt;
Regex - Cannot find regex reference: ^, in regex: '^w+(?&lt;PACKETPOS&gt;[[^]]+])sw+(?&lt;POSINPACKET&gt;[[^]]+])sw+(?&lt;NALLENGTH&gt;[[^]]+])sw+(?&lt;NAL&gt;[[^]]+])'&lt;/NAL&gt;&lt;/NALLENGTH&gt;&lt;/POSINPACKET&gt;&lt;/PACKETPOS&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144502#M40215</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-28T08:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144503#M40216</link>
      <description>&lt;P&gt;Try again, there were missing backslash&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144503#M40216</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2014-04-28T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144504#M40217</link>
      <description>&lt;P&gt;Tried but not able to  make out what is missed&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 08:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144504#M40217</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-28T08:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144505#M40218</link>
      <description>&lt;P&gt;That regex works for the example you provided. What problem do you have now?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 09:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144505#M40218</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2014-04-28T09:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144506#M40219</link>
      <description>&lt;P&gt;Thank you very much for your answer i am able to extract . . .&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 09:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144506#M40219</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-28T09:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144507#M40220</link>
      <description>&lt;P&gt;i will i extract without [ ] . .. &lt;/P&gt;

&lt;P&gt;for example for field Structure, values are [small],[big],[medium]. .. &lt;BR /&gt;
how to extract without brackets&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 10:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144507#M40220</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-28T10:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144508#M40221</link>
      <description>&lt;P&gt;I mean to say I dont want to extract brackets with values,using above regex I am able to extract values with in brackets. . &lt;BR /&gt;
how will i extract only values without brackets&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 10:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144508#M40221</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-28T10:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144509#M40222</link>
      <description>&lt;P&gt;Hello you just need to move the brackets outside the capturing group like:&lt;/P&gt;

&lt;P&gt;\w+\[(?&lt;PACKETPOS&gt;[^\]]+)\]\s&lt;/PACKETPOS&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 10:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144509#M40222</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2014-04-28T10:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: extracting log data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144510#M40223</link>
      <description>&lt;P&gt;yes got it. .thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 11:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-log-data/m-p/144510#M40223</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-04-28T11:23:08Z</dc:date>
    </item>
  </channel>
</rss>

