<?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 How to extract fields with differing lengths from cs-uri-stem entries? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-with-differing-lengths-from-cs-uri-stem/m-p/209211#M61118</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to pull certain criteria out of cs-uri-stem that contain different lengths for cs-uri-stem. I am trying to get one field extraction from all the examples.&lt;/P&gt;

&lt;P&gt;Here are some examples of the cs_uri_stem entries:&lt;/P&gt;

&lt;P&gt;/&lt;STRONG&gt;apps/orderalert&lt;/STRONG&gt;/default.aspx&lt;BR /&gt;
/&lt;STRONG&gt;netpub&lt;/STRONG&gt;/ser.np&lt;BR /&gt;
/&lt;STRONG&gt;apps/ajt/a2dsfile/files&lt;/STRONG&gt;/dll/data.dll&lt;BR /&gt;
/&lt;STRONG&gt;apps/ajt/SE3SPXWEBSERVICE&lt;/STRONG&gt;/SpxSE3WebService.asmx&lt;BR /&gt;
/&lt;STRONG&gt;aspnet_client/system_web/2_0_50727/Themes/Normal/images&lt;/STRONG&gt;/sss_head_bg.gif&lt;/P&gt;

&lt;P&gt;The goal is to get everything minus the last bit and the "/" at the beginning and end. I have highlighted what it is I want to get out of cs_uri_stem. If I need to post more from the log files I can.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;apps/orderalert&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;netpub&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;apps/ajt/a2dsfile/files&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;apps/ajt/SE3SPXWEBSERVICE&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;aspnet_client/system_web/2_0_50727/Themes/Normal/images&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:06:41 GMT</pubDate>
    <dc:creator>patelpin</dc:creator>
    <dc:date>2020-09-29T11:06:41Z</dc:date>
    <item>
      <title>How to extract fields with differing lengths from cs-uri-stem entries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-with-differing-lengths-from-cs-uri-stem/m-p/209211#M61118</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to pull certain criteria out of cs-uri-stem that contain different lengths for cs-uri-stem. I am trying to get one field extraction from all the examples.&lt;/P&gt;

&lt;P&gt;Here are some examples of the cs_uri_stem entries:&lt;/P&gt;

&lt;P&gt;/&lt;STRONG&gt;apps/orderalert&lt;/STRONG&gt;/default.aspx&lt;BR /&gt;
/&lt;STRONG&gt;netpub&lt;/STRONG&gt;/ser.np&lt;BR /&gt;
/&lt;STRONG&gt;apps/ajt/a2dsfile/files&lt;/STRONG&gt;/dll/data.dll&lt;BR /&gt;
/&lt;STRONG&gt;apps/ajt/SE3SPXWEBSERVICE&lt;/STRONG&gt;/SpxSE3WebService.asmx&lt;BR /&gt;
/&lt;STRONG&gt;aspnet_client/system_web/2_0_50727/Themes/Normal/images&lt;/STRONG&gt;/sss_head_bg.gif&lt;/P&gt;

&lt;P&gt;The goal is to get everything minus the last bit and the "/" at the beginning and end. I have highlighted what it is I want to get out of cs_uri_stem. If I need to post more from the log files I can.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;apps/orderalert&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;netpub&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;apps/ajt/a2dsfile/files&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;apps/ajt/SE3SPXWEBSERVICE&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;aspnet_client/system_web/2_0_50727/Themes/Normal/images&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-with-differing-lengths-from-cs-uri-stem/m-p/209211#M61118</guid>
      <dc:creator>patelpin</dc:creator>
      <dc:date>2020-09-29T11:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields with differing lengths from cs-uri-stem entries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-with-differing-lengths-from-cs-uri-stem/m-p/209212#M61119</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | rex field=cs_uri_stem "\/(?&amp;lt;fld&amp;gt;.*)\/"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-with-differing-lengths-from-cs-uri-stem/m-p/209212#M61119</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-21T20:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields with differing lengths from cs-uri-stem entries?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-with-differing-lengths-from-cs-uri-stem/m-p/209213#M61120</link>
      <description>&lt;P&gt;This worked great, thanks. I was able to use "\/(?.*)\/ in cs_uri_stem" to make it work for me.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-with-differing-lengths-from-cs-uri-stem/m-p/209213#M61120</guid>
      <dc:creator>patelpin</dc:creator>
      <dc:date>2020-09-29T11:13:06Z</dc:date>
    </item>
  </channel>
</rss>

