<?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 do I capture unique API list my application is using through Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288515#M55145</link>
    <description>&lt;P&gt;2017-05-12T14:44:40:995+00:00|2017-05-12T14:44:40:999+00:00|xaxaxabb-eb88-4b9a-xxxx-83xxxx38a6|v2.0/sites/site/mccfl/ports/port/xaxaxabb-eb88-4b9a-xsss-83xxdd38a6|1967149302-19938||&lt;A href="https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/%7BuniqueId%7D/%7Cadmin%7CCOMPLETE%7C200%7C%7C%7CINFO%7C%7C102.68.207.180%7C4%7CnsvncvCkjlh03.infra.cic.goo.net%7C129.10.80.105%7C%7C%7C%7C%7C%7C%7C%7CGET"&gt;https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/|admin|COMPLETE|200|||INFO||102.68.207.180|4|nsvncvCkjlh03.infra.cic.goo.net|129.10.80.105||||||||GET&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 14:49:46 GMT</pubDate>
    <dc:creator>vijaydudipala88</dc:creator>
    <dc:date>2017-05-12T14:49:46Z</dc:date>
    <item>
      <title>How do I capture unique API list my application is using through Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288512#M55142</link>
      <description>&lt;P&gt;I have paths like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/" target="test_blank"&gt;https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/&lt;/A&gt;
&lt;A href="https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/service-data/oper-status/" target="test_blank"&gt;https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/service-data/oper-status/&lt;/A&gt;
&lt;A href="https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/service-data/ucpe-vms-service-information/ucpe-information/" target="test_blank"&gt;https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/service-data/ucpe-vms-service-information/ucpe-information/&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc sourcetype="audit" "|https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/*/|"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The wildcard * is capturing above three as single API, I need them as three separate ones. All help is appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 17:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288512#M55142</guid>
      <dc:creator>vijaydudipala88</dc:creator>
      <dc:date>2017-05-11T17:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I capture unique API list my application is using through Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288513#M55143</link>
      <description>&lt;P&gt;You have these paths inside events?  &lt;/P&gt;

&lt;P&gt;Also, you have pipe characters inside your search - from that I assume you trimmed the events you are displaying here?  Could you instead paste the full event - just pick one, obfuscating if &lt;EM&gt;necessary&lt;/EM&gt; but please try to keep the structure the same?&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288513#M55143</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-05-12T01:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I capture unique API list my application is using through Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288514#M55144</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=abc sourcetype="audit" | rex field=_raw "/service-list/(?&amp;lt;api&amp;gt;[^/]+)/" | stats count by api
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The rex command will run a regular expression over the strings, grab the portion that follows /service-list/ and stores it in the field 'api'. The stats count command counts the frequency of each unique api, giving you the usage.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 05:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288514#M55144</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2017-05-12T05:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I capture unique API list my application is using through Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288515#M55145</link>
      <description>&lt;P&gt;2017-05-12T14:44:40:995+00:00|2017-05-12T14:44:40:999+00:00|xaxaxabb-eb88-4b9a-xxxx-83xxxx38a6|v2.0/sites/site/mccfl/ports/port/xaxaxabb-eb88-4b9a-xsss-83xxdd38a6|1967149302-19938||&lt;A href="https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/%7BuniqueId%7D/%7Cadmin%7CCOMPLETE%7C200%7C%7C%7CINFO%7C%7C102.68.207.180%7C4%7CnsvncvCkjlh03.infra.cic.goo.net%7C129.10.80.105%7C%7C%7C%7C%7C%7C%7C%7CGET"&gt;https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/|admin|COMPLETE|200|||INFO||102.68.207.180|4|nsvncvCkjlh03.infra.cic.goo.net|129.10.80.105||||||||GET&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 14:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288515#M55145</guid>
      <dc:creator>vijaydudipala88</dc:creator>
      <dc:date>2017-05-12T14:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I capture unique API list my application is using through Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288516#M55146</link>
      <description>&lt;P&gt;The portion that follows "/service-list/"  is &lt;STRONG&gt;unique id&lt;/STRONG&gt; and is followed by "/service-data/oper-status/" ..........so I need count like this:&lt;BR /&gt;
1. &lt;A href="https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/%7BuniqueId%7D/service-data/oper-status/"&gt;https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/service-data/oper-status/&lt;/A&gt;  ---1000&lt;BR /&gt;
2. &lt;A href="https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/%7BuniqueId%7D/service-data/ucpe-vms-service-information/ucpe-information/"&gt;https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/service-data/ucpe-vms-service-information/ucpe-information/&lt;/A&gt; ----970&lt;BR /&gt;
3. &lt;A href="https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/%7BuniqueId%7D/"&gt;https://100.100.100.100:8080/rest/config/L3UCPE-API:services/service-list/{uniqueId}/&lt;/A&gt; -----500&lt;/P&gt;

&lt;P&gt;The 3rd APIs count should not include counts of 1st and 2nd though the path looks like superset of 1 and 2&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 16:00:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288516#M55146</guid>
      <dc:creator>vijaydudipala88</dc:creator>
      <dc:date>2017-05-12T16:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I capture unique API list my application is using through Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288517#M55147</link>
      <description>&lt;P&gt;So what you actually want to capture is everything up until the pipe | symbol. In this case, this is the regular expression&lt;BR /&gt;
 index=abc sourcetype="audit" | rex field=_raw "/service-list/(?[^|]+)|" | stats count by api&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 03:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-capture-unique-API-list-my-application-is-using-through/m-p/288517#M55147</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2017-05-13T03:46:57Z</dc:date>
    </item>
  </channel>
</rss>

