<?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 Capture multiple values of same pattern in an event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658838#M227543</link>
    <description>&lt;P&gt;How do we capture multiple URLs in a single event?&lt;/P&gt;&lt;P&gt;Log1:&lt;/P&gt;&lt;P&gt;type=EXECVE msg=audit(1695798790.101:25214323): argc=17 a1="&lt;A title="http://10.249.32.252:8080%22" target="_blank" rel="noreferrer noopener"&gt;http://127.0.0.1:8080" a2="&lt;/A&gt;&lt;A title="http://10.0.2.20%22" target="_blank" rel="noreferrer noopener"&gt;http://10.0.2.20"&amp;nbsp;a3="&lt;/A&gt;&lt;A class="" title="https://google.com/data/involvement/%22" href="https://google.com/data/involvement/%22" target="_blank" rel="noreferrer noopener"&gt;https://google.com/data/involvement/" a4=cat&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log2:&lt;/P&gt;&lt;P&gt;type=EXECVE msg=audit(1695798790.100:25214323):&amp;nbsp; a2="&lt;A title="https://facebook.com%22/" target="_blank" rel="noreferrer noopener"&gt;https://facebook.com" a3="-o" a4="&lt;/A&gt;&lt;A class="" title="http://127.0.0.1/index.html%22" href="http://127.0.0.1/index.html%22" target="_blank" rel="noreferrer noopener"&gt;http://127.0.0.1/index.html" a5="-kis" a6="-x" a7="&lt;/A&gt;&lt;A title="http://10.249.32.252:8080%22" target="_blank" rel="noreferrer noopener"&gt;http://10.0.0.10:8080"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I'm using below regex which captures only one URL,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;| rex field=_raw ".*\"(?&amp;lt;URL&amp;gt;((http|https):\/\/(\S+|\d+\.\d+\.\d+\.\d+\S+)))\""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Need all the URLs in the output.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 09:13:12 GMT</pubDate>
    <dc:creator>nihvk</dc:creator>
    <dc:date>2023-09-27T09:13:12Z</dc:date>
    <item>
      <title>Capture multiple values of same pattern in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658838#M227543</link>
      <description>&lt;P&gt;How do we capture multiple URLs in a single event?&lt;/P&gt;&lt;P&gt;Log1:&lt;/P&gt;&lt;P&gt;type=EXECVE msg=audit(1695798790.101:25214323): argc=17 a1="&lt;A title="http://10.249.32.252:8080%22" target="_blank" rel="noreferrer noopener"&gt;http://127.0.0.1:8080" a2="&lt;/A&gt;&lt;A title="http://10.0.2.20%22" target="_blank" rel="noreferrer noopener"&gt;http://10.0.2.20"&amp;nbsp;a3="&lt;/A&gt;&lt;A class="" title="https://google.com/data/involvement/%22" href="https://google.com/data/involvement/%22" target="_blank" rel="noreferrer noopener"&gt;https://google.com/data/involvement/" a4=cat&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log2:&lt;/P&gt;&lt;P&gt;type=EXECVE msg=audit(1695798790.100:25214323):&amp;nbsp; a2="&lt;A title="https://facebook.com%22/" target="_blank" rel="noreferrer noopener"&gt;https://facebook.com" a3="-o" a4="&lt;/A&gt;&lt;A class="" title="http://127.0.0.1/index.html%22" href="http://127.0.0.1/index.html%22" target="_blank" rel="noreferrer noopener"&gt;http://127.0.0.1/index.html" a5="-kis" a6="-x" a7="&lt;/A&gt;&lt;A title="http://10.249.32.252:8080%22" target="_blank" rel="noreferrer noopener"&gt;http://10.0.0.10:8080"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I'm using below regex which captures only one URL,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;| rex field=_raw ".*\"(?&amp;lt;URL&amp;gt;((http|https):\/\/(\S+|\d+\.\d+\.\d+\.\d+\S+)))\""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Need all the URLs in the output.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 09:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658838#M227543</guid>
      <dc:creator>nihvk</dc:creator>
      <dc:date>2023-09-27T09:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Capture multiple values of same pattern in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658839#M227544</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 field=_raw ".*\"(?&amp;lt;URL&amp;gt;((http|https):\/\/(\S+|\d+\.\d+\.\d+\.\d+\S+)))\""&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 09:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658839#M227544</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-27T09:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Capture multiple values of same pattern in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658841#M227545</link>
      <description>&lt;P&gt;I'm afraid, it still gives a single value output like this,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;URL&lt;/P&gt;&lt;P&gt;&lt;A title="http://10.249.32.252:8080%22" target="_blank" rel="noreferrer noopener"&gt;http://127.0.0.1:8080&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="https://facebook.com%22/" target="_blank" rel="noreferrer noopener"&gt;https://facebook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 09:49:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658841#M227545</guid>
      <dc:creator>nihvk</dc:creator>
      <dc:date>2023-09-27T09:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Capture multiple values of same pattern in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658844#M227547</link>
      <description>&lt;P&gt;Try without the greedy match at the beginning&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 field=_raw "\"(?&amp;lt;URL&amp;gt;((http|https):\/\/(\S+|\d+\.\d+\.\d+\.\d+\S+)))\""&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 09:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658844#M227547</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-27T09:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Capture multiple values of same pattern in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658846#M227548</link>
      <description>&lt;P&gt;Fantastic! It worked. Thanks for the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 09:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capture-multiple-values-of-same-pattern-in-an-event/m-p/658846#M227548</guid>
      <dc:creator>nihvk</dc:creator>
      <dc:date>2023-09-27T09:57:43Z</dc:date>
    </item>
  </channel>
</rss>

