<?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 Help me with Regex in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752750#M59150</link>
    <description>&lt;P&gt;Hi Team, Am trying to write a regex function to remove the logs post / slash everything. The sample logs are here:&lt;BR /&gt;Sample logs:&lt;BR /&gt;&lt;SPAN&gt;1) ws.chatgpt.com/re/user/sdsdssdsd?verify=1757077758-CSPsqhWt%sdserere%2BJ7IesevE6CTs%3D&lt;BR /&gt;2)win-extension.femrerere.grammarly.io/batch/import&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The / logs are not same. they are dynamic.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Expected post Regex:&amp;nbsp;&lt;SPAN&gt;ws.chatgpt.com&lt;BR /&gt;win-extension.femetrics.grammarly.io&lt;BR /&gt;&lt;BR /&gt;Can someone please help me to write a regex for the same.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Sep 2025 13:29:29 GMT</pubDate>
    <dc:creator>SabariRajanT</dc:creator>
    <dc:date>2025-09-05T13:29:29Z</dc:date>
    <item>
      <title>Help me with Regex</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752750#M59150</link>
      <description>&lt;P&gt;Hi Team, Am trying to write a regex function to remove the logs post / slash everything. The sample logs are here:&lt;BR /&gt;Sample logs:&lt;BR /&gt;&lt;SPAN&gt;1) ws.chatgpt.com/re/user/sdsdssdsd?verify=1757077758-CSPsqhWt%sdserere%2BJ7IesevE6CTs%3D&lt;BR /&gt;2)win-extension.femrerere.grammarly.io/batch/import&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The / logs are not same. they are dynamic.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Expected post Regex:&amp;nbsp;&lt;SPAN&gt;ws.chatgpt.com&lt;BR /&gt;win-extension.femetrics.grammarly.io&lt;BR /&gt;&lt;BR /&gt;Can someone please help me to write a regex for the same.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 13:29:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752750#M59150</guid>
      <dc:creator>SabariRajanT</dc:creator>
      <dc:date>2025-09-05T13:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with Regex</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752752#M59151</link>
      <description>&lt;P&gt;Try this SPL command&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed "s:([^\/]+):\1:"&lt;/LI-CODE&gt;&lt;P&gt;To make the change at index time, put this in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
SEDCMD-postSlash = s:([^\/]+):\1:&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Sep 2025 13:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752752#M59151</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-09-05T13:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with Regex</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752799#M59157</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;you can try this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="url
ws.chatgpt.com/re/user/sdsdssdsd?verify=1757077758-CSPsqhWt%sdserere%2BJ7IesevE6CTs%3D
win-extension.femrerere.grammarly.io/batch/import
" 
| rex field=url "^(?&amp;lt;url_short&amp;gt;[^\/]+)" 
| table url, url_short&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 10:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752799#M59157</guid>
      <dc:creator>glass</dc:creator>
      <dc:date>2025-09-08T10:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with Regex</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752800#M59158</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224126"&gt;@SabariRajanT&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you don't want to create new field, use simple rex mode=sed&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval url="ws.chatgpt.com/re/user/sdsdssdsd?verify=1757077758"
| rex field=url mode=sed "s:/.*::"
| table url
&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;If you want to create new fields like domain/url for creating any visualization/reporting use below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=1
| eval raw_log="ws.chatgpt.com/re/user/sdsdssdsd?verify=1757077758-CSPsqhWt%sdserere%2BJ7IesevE6CTs%3D,win-extension.femrerere.grammarly.io/batch/import"
| makemv delim="," raw_log
| mvexpand raw_log
| rex field=raw_log "^(?&amp;lt;domain&amp;gt;[^/]+)"
| table raw_log domain&lt;/LI-CODE&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 11:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-me-with-Regex/m-p/752800#M59158</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-09-08T11:13:23Z</dc:date>
    </item>
  </channel>
</rss>

