<?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 do you extract a new field from a source field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391028#M113829</link>
    <description>&lt;P&gt;Great! Thanks for accepting &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 11:19:05 GMT</pubDate>
    <dc:creator>chrisyounger</dc:creator>
    <dc:date>2019-02-19T11:19:05Z</dc:date>
    <item>
      <title>How do you extract a new field from a source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391025#M113826</link>
      <description>&lt;P&gt;I have a log with below as a source field from which I need to extract the field Gateway name (&lt;STRONG&gt;My_Gateway_NONPROD&lt;/STRONG&gt;). &lt;/P&gt;

&lt;P&gt;Any help in how to extract it?.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source= /apps/geneos/gateway/logs/My_Gateway_NONPROD.log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391025#M113826</guid>
      <dc:creator>pbsuju</dc:creator>
      <dc:date>2020-09-29T23:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract a new field from a source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391026#M113827</link>
      <description>&lt;P&gt;hi @pbsuju &lt;/P&gt;

&lt;P&gt;Give this a try : &lt;CODE&gt;| rex field=source ".*\/(?&amp;lt;gateway_name&amp;gt;[^\.]*)" | table gateway_name&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;All the best!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391026#M113827</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-19T11:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract a new field from a source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391027#M113828</link>
      <description>&lt;P&gt;Great thanks. It worked&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391027#M113828</guid>
      <dc:creator>pbsuju</dc:creator>
      <dc:date>2019-02-19T11:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract a new field from a source field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391028#M113829</link>
      <description>&lt;P&gt;Great! Thanks for accepting &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:19:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-a-new-field-from-a-source-field/m-p/391028#M113829</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-19T11:19:05Z</dc:date>
    </item>
  </channel>
</rss>

