<?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: Extract sub string from address in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-sub-string-from-address/m-p/569989#M198676</link>
    <description>&lt;P&gt;Assuming you already have the Address in a field called Address&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval city=mvindex(split(Address,","),3)

or

| rex field=Address "([^,]+,){2}(?&amp;lt;city&amp;gt;[^,]+)"&lt;/LI-CODE&gt;&lt;P&gt;Otherwise, use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Address:\s([^,]+,){2}(?&amp;lt;city&amp;gt;[^,]+)"&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 07 Oct 2021 07:01:02 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-10-07T07:01:02Z</dc:date>
    <item>
      <title>Extract sub string from address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-sub-string-from-address/m-p/569969#M198668</link>
      <description>&lt;P&gt;I have the following address, and I want to extract the substring.&lt;/P&gt;&lt;P&gt;Address: 121, riverstreet, sydney, Australia.&lt;/P&gt;&lt;P&gt;I want to extract 'sydney'.&lt;/P&gt;&lt;P&gt;Help would be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 01:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-sub-string-from-address/m-p/569969#M198668</guid>
      <dc:creator>sndpgiri</dc:creator>
      <dc:date>2021-10-07T01:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extract sub string from address</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-sub-string-from-address/m-p/569989#M198676</link>
      <description>&lt;P&gt;Assuming you already have the Address in a field called Address&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval city=mvindex(split(Address,","),3)

or

| rex field=Address "([^,]+,){2}(?&amp;lt;city&amp;gt;[^,]+)"&lt;/LI-CODE&gt;&lt;P&gt;Otherwise, use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Address:\s([^,]+,){2}(?&amp;lt;city&amp;gt;[^,]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Oct 2021 07:01:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-sub-string-from-address/m-p/569989#M198676</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T07:01:02Z</dc:date>
    </item>
  </channel>
</rss>

