<?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: How to extract a content or string between 2 strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601879#M209475</link>
    <description>&lt;P&gt;Thanks it works&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what is it means&amp;nbsp;&lt;SPAN&gt;parsing _raw field&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 09:27:47 GMT</pubDate>
    <dc:creator>sekhar463</dc:creator>
    <dc:date>2022-06-15T09:27:47Z</dc:date>
    <item>
      <title>How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601788#M209438</link>
      <description>&lt;P&gt;&amp;nbsp;AL9851 | Z1 | [&lt;A href="https://oac.uatgen2.invesco.net/analytics/" target="_blank" rel="noopener"&gt;https://example1.com/&lt;/A&gt;] recording played asia location is Down&lt;/P&gt;&lt;P&gt;AL9851 | Z1 | [&lt;A href="http://alphabeta/" target="_blank" rel="noopener"&gt;http://alphabeta/&lt;/A&gt;] recording played from asia location is Down&lt;/P&gt;&lt;P&gt;AL9851 | Z1 | [&lt;A href="http://alphabeta/" target="_blank" rel="noopener"&gt;http://alphabeta/&lt;/A&gt;] recording played from US location is Down&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have above log from that need to extract URL&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;.as URL varies but content is same before and after URL .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601788#M209438</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-06-15T09:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601790#M209439</link>
      <description>&lt;P&gt;Use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\[(?&amp;lt;url&amp;gt;http[^\]]*)\]"&lt;/LI-CODE&gt;&lt;P&gt;assuming you are parsing _raw field&lt;/P&gt;&lt;P&gt;I am assuming your example has 3 rows with 3 urls. The field name extracted above will be url&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601790#M209439</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-06-14T18:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601818#M209450</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "^([^\|]+\|\s+){2}\[(?&amp;lt;URL&amp;gt;[^\]]+)\]"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/2HDtmM/1" target="_blank"&gt;https://regex101.com/r/2HDtmM/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 06:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601818#M209450</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-15T06:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601879#M209475</link>
      <description>&lt;P&gt;Thanks it works&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what is it means&amp;nbsp;&lt;SPAN&gt;parsing _raw field&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601879#M209475</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-06-15T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601880#M209476</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;that works&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601880#M209476</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-06-15T09:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601882#M209477</link>
      <description>&lt;P&gt;thanks it works&lt;/P&gt;&lt;P&gt;but is both rex works as same&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| rex "^([^\|]+\|\s+){2}\[(?&amp;lt;URL&amp;gt;[^\]]+)\]"&lt;/PRE&gt;&lt;PRE&gt;| rex "\[(?&amp;lt;url&amp;gt;http[^\]]*)\]"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601882#M209477</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-06-15T09:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601883#M209478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;&lt;/P&gt;&lt;P&gt;the phrase from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;means that using the rex command you can extract a field from the entire raw log (without specifying any field) as in your case, or specifying a field.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:32:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601883#M209478</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-15T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601884#M209479</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601884#M209479</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-06-15T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a content or string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601918#M209494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244375"&gt;@sekhar463&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 14:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-content-or-string-between-2-strings/m-p/601918#M209494</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-15T14:00:24Z</dc:date>
    </item>
  </channel>
</rss>

