<?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: Search an endpoint ending with numbers in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562376#M195586</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237199"&gt;@newtosplunk14&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cf_app_name="preval" cf_space_name="prod" | regex "\/api\/work\/\d+"&lt;/LI-CODE&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 07:30:45 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-08-06T07:30:45Z</dc:date>
    <item>
      <title>Search an endpoint ending with numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562372#M195584</link>
      <description>&lt;P&gt;I want to search for endpoints&amp;nbsp;&amp;nbsp;&lt;SPAN class="t string h"&gt;/api/work/12345678 i.e api/work/(8 digt number). My below query gives me all the three endpoint in the logs. I just only want the ones that are&amp;nbsp; /api/work/12345678.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Search Query -&lt;/STRONG&gt; cf_app_name="preval" cf_space_name="prod" msg="*/api/jobs/*"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My logs contain&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key-name"&gt;msg&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t string h"&gt;abc - [2021-08-06T06:49:11.529+0000] "GET /api/work/12345678/data HTTP/1.1" &lt;SPAN&gt;200 0 407 "-" "Java/1.8.0_222" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string h"&gt;&lt;SPAN class="key-name"&gt;msg&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;abc - [2021-08-06T06:49:11.529+0000] "GET /api/work/12345678 HTTP/1.1"&amp;nbsp; &lt;SPAN&gt;200 0 407 "-" "Java/1.8.0_222"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string h"&gt;&lt;SPAN class="key-name"&gt;msg&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;abc - [2021-08-06T06:49:11.529+0000] "GET /api/work/12345678/photo HTTP/1.1"&amp;nbsp;&lt;SPAN&gt;200 0 407 "-" "Java/1.8.0_222"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string h"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 07:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562372#M195584</guid>
      <dc:creator>newtosplunk14</dc:creator>
      <dc:date>2021-08-06T07:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search an endpoint ending with numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562376#M195586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237199"&gt;@newtosplunk14&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cf_app_name="preval" cf_space_name="prod" | regex "\/api\/work\/\d+"&lt;/LI-CODE&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 07:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562376#M195586</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-06T07:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search an endpoint ending with numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562386#M195591</link>
      <description>&lt;P&gt;If msg is a field which is already extracted, you can use this - note the \s in the pattern to terminate the URI&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cf_app_name="preval" cf_space_name="prod" | regex msg="\/api\/work\/\d+\s"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Aug 2021 08:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562386#M195591</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-06T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search an endpoint ending with numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562393#M195596</link>
      <description>&lt;P&gt;Thanks for your response Venkatasri. I tried but still returns all the events. I want the query to return one the first event in my log below.&lt;/P&gt;&lt;P&gt;my log is as below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;msg&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t string"&gt;timestamp="2021-08-06T08:55:56.091Z", local_host="3deb5c54-c5f9-446d-6136-89ee", status="200", remote_host="70.132.29.36", client_id="7012430", subject_id="NO_SUBJECT_ID", service_access_id="ACCESS_USER", billing_event_sent="false", execution_time="3", &lt;STRONG&gt;uri="/api/work/16898540&lt;/STRONG&gt;", app_env="prod", usage_log="preval"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="t string"&gt;&lt;SPAN class="key-name"&gt;msg&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;timestamp="2021-08-06T08:55:56.091Z", local_host="3deb5c54-c5f9-446d-6136-89ee", status="200", remote_host="70.132.29.36", client_id="7012430", subject_id="NO_SUBJECT_ID", service_access_id="ACCESS_USER", billing_event_sent="false", execution_time="3", &lt;STRONG&gt;uri="/api/work/16898540/data&lt;/STRONG&gt;", app_env="prod", usage_log="preval"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562393#M195596</guid>
      <dc:creator>newtosplunk14</dc:creator>
      <dc:date>2021-08-06T09:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search an endpoint ending with numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562394#M195597</link>
      <description>&lt;LI-CODE lang="markup"&gt;cf_app_name="preval" cf_space_name="prod" | regex "uri=\"\/api\/work\/\d+\""&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562394#M195597</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-06T09:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search an endpoint ending with numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562395#M195598</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237199"&gt;@newtosplunk14&lt;/a&gt;&amp;nbsp; try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cf_app_name="preval" cf_space_name="prod" | regex uri="\/api\/work\/\d+$"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562395#M195598</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-06T09:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search an endpoint ending with numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562414#M195608</link>
      <description>&lt;P&gt;Thanks heaps&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;. both your solutions worked brilliantly!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-an-endpoint-ending-with-numbers/m-p/562414#M195608</guid>
      <dc:creator>newtosplunk14</dc:creator>
      <dc:date>2021-08-06T12:56:08Z</dc:date>
    </item>
  </channel>
</rss>

