<?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: I need to split the requestPath eliminating the data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506093#M141598</link>
    <description>&lt;P&gt;Thanks Rich..I tried the option you gave me. but it's didn't display the request Path nor trimmed it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;My Search "requestPath":"/ecp/stream/v1/purchase*" | rex "requestPath":"(?&amp;lt;reqPath&amp;gt;(?:\/[^\/]+){4})" | stats count by reqPath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the events but it's not extracting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vijaysubramania_0-1593063482889.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9341iBC03ED8F0C33186F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vijaysubramania_0-1593063482889.png" alt="vijaysubramania_0-1593063482889.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 05:38:14 GMT</pubDate>
    <dc:creator>vijaysubramania</dc:creator>
    <dc:date>2020-06-25T05:38:14Z</dc:date>
    <item>
      <title>I need to split the requestPath eliminating the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506021#M141550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Need one Help. I have the below mentioned requestPath where&amp;nbsp;&lt;SPAN&gt;I am able to capture the whole path..But can't take a count if there is different Div ID and Account No. I just to extract only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"/ecp/stream/v1/purchase/" and make a count of it. so that I can get the different response status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"requestPath":"/ecp/stream/v1/purchase/NTX.8160/8260180902213447","responseStatus":204,"responseSize":0,"responseContent":"","responseTime":27} Show syntax highlighted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rex field=_raw "requestPath":"(?&amp;lt;reqPath&amp;gt;[^?|^\s|^"]+)"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 17:47:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506021#M141550</guid>
      <dc:creator>vijaysubramania</dc:creator>
      <dc:date>2020-06-24T17:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: I need to split the requestPath eliminating the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506030#M141574</link>
      <description>&lt;P&gt;Try this regex.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | rex "requestPath":"(?&amp;lt;reqPath&amp;gt;(?:\/[^\/]+){4})"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Jun 2020 18:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506030#M141574</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-24T18:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: I need to split the requestPath eliminating the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506093#M141598</link>
      <description>&lt;P&gt;Thanks Rich..I tried the option you gave me. but it's didn't display the request Path nor trimmed it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;My Search "requestPath":"/ecp/stream/v1/purchase*" | rex "requestPath":"(?&amp;lt;reqPath&amp;gt;(?:\/[^\/]+){4})" | stats count by reqPath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the events but it's not extracting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vijaysubramania_0-1593063482889.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9341iBC03ED8F0C33186F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vijaysubramania_0-1593063482889.png" alt="vijaysubramania_0-1593063482889.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 05:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506093#M141598</guid>
      <dc:creator>vijaysubramania</dc:creator>
      <dc:date>2020-06-25T05:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: I need to split the requestPath eliminating the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506095#M141599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/53447"&gt;@vijaysubramania&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The answer provided by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;is mostly correct but you'll need to backslash escape the double quotes.&amp;nbsp; Here's a run anywhere example of what I mean.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="requestPath\":\"/ecp/stream/v1/purchase/NTX.8160/8260180902213447"
| rex  "requestPath\":\"(?&amp;lt;reqPath&amp;gt;(?:\/[^\/]+){4})"
| stats count by reqPath&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 05:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506095#M141599</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2020-06-25T05:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: I need to split the requestPath eliminating the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506230#M141636</link>
      <description>&lt;P&gt;Got it..Thank you very much Rich and Yeahnah &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 22:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-need-to-split-the-requestPath-eliminating-the-data/m-p/506230#M141636</guid>
      <dc:creator>vijaysubramania</dc:creator>
      <dc:date>2020-06-25T22:56:48Z</dc:date>
    </item>
  </channel>
</rss>

