<?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 Can you help me make a regex for URL having different types of parameters? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-make-a-regex-for-URL-having-different-types-of/m-p/394177#M114532</link>
    <description>&lt;P&gt;I have below 2 log sets which have different activities. i want two different regex for Set1 and Set2 separately in 2 different panels&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Set1
log1:
index="abc_xyz"|activity=GET-&amp;gt;/cirrus/v2.0/payloads/96a-d3f-4fb/HELLO_WORLD|eventEndTime=2018-09-26
log2:
index="abc_xyz"|activity=GET-&amp;gt;/cirrus/v2.0/payloads/f4a-8ef-8cb/abcpayld|eventEndTime=2018-09-26

Set2
log3:
index="abc_xyz"|activity=GET-&amp;gt;/cirrus/v2.0/payloads/96a-d3f-4fb/HELLO_WORLD/fd078jkkj24342kljlce989dadc7abc56c28|eventEndTime=2018-09-26
log4:
index="abc_xyz"|activity=GET-&amp;gt;/cirrus/v2.0/payloads/f4a-8ef-8cb/abcpayld/thfd078jkkj24342kljlce989dadc7vfc56c28|eventEndTime=2018-09-26
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried with below , but No luck&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="abc_xyz" |regex "GET-&amp;gt;\/cirrus\/v2.0\/payloads\/([[:alnum:]-]{10,40})\/([[:alpha:]_]{10,40})"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could you please resolve my query&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 13:54:25 GMT</pubDate>
    <dc:creator>arjun_krishna</dc:creator>
    <dc:date>2018-09-27T13:54:25Z</dc:date>
    <item>
      <title>Can you help me make a regex for URL having different types of parameters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-make-a-regex-for-URL-having-different-types-of/m-p/394177#M114532</link>
      <description>&lt;P&gt;I have below 2 log sets which have different activities. i want two different regex for Set1 and Set2 separately in 2 different panels&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Set1
log1:
index="abc_xyz"|activity=GET-&amp;gt;/cirrus/v2.0/payloads/96a-d3f-4fb/HELLO_WORLD|eventEndTime=2018-09-26
log2:
index="abc_xyz"|activity=GET-&amp;gt;/cirrus/v2.0/payloads/f4a-8ef-8cb/abcpayld|eventEndTime=2018-09-26

Set2
log3:
index="abc_xyz"|activity=GET-&amp;gt;/cirrus/v2.0/payloads/96a-d3f-4fb/HELLO_WORLD/fd078jkkj24342kljlce989dadc7abc56c28|eventEndTime=2018-09-26
log4:
index="abc_xyz"|activity=GET-&amp;gt;/cirrus/v2.0/payloads/f4a-8ef-8cb/abcpayld/thfd078jkkj24342kljlce989dadc7vfc56c28|eventEndTime=2018-09-26
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried with below , but No luck&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="abc_xyz" |regex "GET-&amp;gt;\/cirrus\/v2.0\/payloads\/([[:alnum:]-]{10,40})\/([[:alpha:]_]{10,40})"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could you please resolve my query&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-make-a-regex-for-URL-having-different-types-of/m-p/394177#M114532</guid>
      <dc:creator>arjun_krishna</dc:creator>
      <dc:date>2018-09-27T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me make a regex for URL having different types of parameters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-make-a-regex-for-URL-having-different-types-of/m-p/394178#M114533</link>
      <description>&lt;P&gt;Assuming the difference between the two sets is that set1 has 5 segments in the URL and set2 has 6 segments, you could try:&lt;/P&gt;

&lt;P&gt;regex for set1: &lt;CODE&gt;^GET-\&amp;gt;(\/[^\/]+){5}$&lt;/CODE&gt;&lt;BR /&gt;
&lt;A href="https://regex101.com/r/aHAhTo/1"&gt;https://regex101.com/r/aHAhTo/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;regex for set2: &lt;CODE&gt;^GET-\&amp;gt;(\/[^\/]+){6}$&lt;/CODE&gt;&lt;BR /&gt;
&lt;A href="https://regex101.com/r/aHAhTo/2"&gt;https://regex101.com/r/aHAhTo/2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 16:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-make-a-regex-for-URL-having-different-types-of/m-p/394178#M114533</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-09-27T16:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me make a regex for URL having different types of parameters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-make-a-regex-for-URL-having-different-types-of/m-p/394179#M114534</link>
      <description>&lt;P&gt;@arjun_krishna&lt;/P&gt;

&lt;P&gt;Did you try out the answer below? If it helped, would please resolve this post by approving it?&lt;BR /&gt;
If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 20:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-make-a-regex-for-URL-having-different-types-of/m-p/394179#M114534</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-09-28T20:52:05Z</dc:date>
    </item>
  </channel>
</rss>

