<?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: Splunk query to skip alphanumeric string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680516#M232597</link>
    <description>&lt;P&gt;&lt;A href="https://regex101.com/r/vFdbh7/1" target="_blank"&gt;https://regex101.com/r/vFdbh7/1&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\"address\":\"(?&amp;lt;api&amp;gt;[\w\/:]+?)(?=([a-z0-9]+\-[a-z0-9-]+)|$)"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 13 Mar 2024 10:06:10 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-03-13T10:06:10Z</dc:date>
    <item>
      <title>Splunk query to skip alphanumeric string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680510#M232593</link>
      <description>&lt;P&gt;I've below 3 different types of API logs where I've to treat all 3 as same and get the count of the API.&lt;BR /&gt;&lt;BR /&gt;There are multiple versions of same API along with or without user guid which is a unique value.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"address":"&lt;A href="http://test/services/user/" target="_blank"&gt;http://test/services/user/&lt;/A&gt;&lt;STRONG&gt;v1&lt;/STRONG&gt;/deleteUser/342ad-123m4-r43rm-144dgdg&lt;/LI&gt;&lt;LI&gt;"address":"&lt;A href="http://test/services/user/" target="_blank"&gt;http://test/services/user/&lt;/A&gt;&lt;STRONG&gt;v2&lt;/STRONG&gt;/deleteUser/delete/342ad-123m4-r43rm-144dgdg&lt;/LI&gt;&lt;LI&gt;"address":"&lt;A href="http://test/services/user/" target="_blank"&gt;http://test/services/user/&lt;/A&gt;&lt;STRONG&gt;v2&lt;/STRONG&gt;/deleteUser&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Looing for a regex which reads the API until the alphanumeric string starts. In short , if I do stats count by API it should give the count as 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 09:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680510#M232593</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2024-03-13T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to skip alphanumeric string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680513#M232595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/38204"&gt;@Deprasad&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try this regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\"address\":\"(?&amp;lt;uri&amp;gt;https*:\/\/[^\/]+\/[^\/]+\/[^\/]+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/Umz02I/1" target="_blank"&gt;https://regex101.com/r/Umz02I/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if you already extracted the full APP value (and it's called "api_url "), you can use a different regex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=api_url "(?&amp;lt;uri&amp;gt;https*:\/\/[^\/]+\/[^\/]+\/[^\/]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 09:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680513#M232595</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-13T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to skip alphanumeric string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680516#M232597</link>
      <description>&lt;P&gt;&lt;A href="https://regex101.com/r/vFdbh7/1" target="_blank"&gt;https://regex101.com/r/vFdbh7/1&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\"address\":\"(?&amp;lt;api&amp;gt;[\w\/:]+?)(?=([a-z0-9]+\-[a-z0-9-]+)|$)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 Mar 2024 10:06:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680516#M232597</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-13T10:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to skip alphanumeric string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680528#M232602</link>
      <description>&lt;P&gt;Thanks a lot! This regex works for the given example.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've another pattern like this&amp;nbsp;"&lt;STRONG&gt;address":"&lt;A href="http://test-query-service.xxx-xxx.xxx.xxx.com/services/user/v1/deleteUser/342ad-123m4-r43rm-144dgdg" target="_blank"&gt;http://test-query-service.xxx-xxx.xxx.xxx.com/services/user/v1/deleteUser/342ad-123m4-r43rm-144dgdg&lt;/A&gt;"&lt;/STRONG&gt; for which I'm trying to implement the regex you've given by modifying slightly but couldn't achieve the same result.&lt;BR /&gt;&lt;BR /&gt;Can you please help here? Also can you please break down the regex for my better understanding.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 11:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680528#M232602</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2024-03-13T11:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to skip alphanumeric string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680540#M232609</link>
      <description>&lt;P&gt;How much of this is real? For example, do you really have hyphens in the host name of the address? Are they the only place where hyphens occur apart from the end part?&lt;/P&gt;&lt;P&gt;Are there any other representative examples you wish to be considered?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 13:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680540#M232609</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-13T13:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to skip alphanumeric string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680549#M232613</link>
      <description>&lt;P&gt;Yes, I've hyphens and a full stop on the hostname that needs to be considered.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So far identified those 4 patterns and that should be it.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 13:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-skip-alphanumeric-string/m-p/680549#M232613</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2024-03-13T13:48:13Z</dc:date>
    </item>
  </channel>
</rss>

