<?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 remove a prefix on a field during search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301154#M90663</link>
    <description>&lt;P&gt;You can use rex in your search.  Try this out.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YOUR BASE SEARCH]
| rex field=user "\w{3}\\\(?&amp;lt;user2&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 19 May 2017 01:53:34 GMT</pubDate>
    <dc:creator>kmorris_splunk</dc:creator>
    <dc:date>2017-05-19T01:53:34Z</dc:date>
    <item>
      <title>How to remove a prefix on a field during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301153#M90662</link>
      <description>&lt;P&gt;Hello, I'm trying to normalize a field during search. I have the field "user" and some of the fields are "NAU\abc123". I'm trying to remove the prefix "NAU\". All I want is the abc123 part of it. Is there a way to remove that prefix in search? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 23:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301153#M90662</guid>
      <dc:creator>aba83</dc:creator>
      <dc:date>2017-05-18T23:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a prefix on a field during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301154#M90663</link>
      <description>&lt;P&gt;You can use rex in your search.  Try this out.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YOUR BASE SEARCH]
| rex field=user "\w{3}\\\(?&amp;lt;user2&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 May 2017 01:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301154#M90663</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2017-05-19T01:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a prefix on a field during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301155#M90664</link>
      <description>&lt;P&gt;hello aba,&lt;BR /&gt;
a little confusing as you suggest both "user" and "NAU\abc123" are fields, are NAU\abc123 fields or values under the field user?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 01:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301155#M90664</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-19T01:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a prefix on a field during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301156#M90665</link>
      <description>&lt;P&gt;i think you have one extra backslash in here. &lt;CODE&gt;\w{3}\\(?&amp;lt;user2&amp;gt;\S+)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 11:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301156#M90665</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-19T11:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a prefix on a field during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301157#M90666</link>
      <description>&lt;P&gt;It was escaping the parenthesis with only 2. I had to add  the extra. This is something to do with the Rex command. &lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 12:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301157#M90666</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2017-05-19T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a prefix on a field during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301158#M90667</link>
      <description>&lt;P&gt;Sorry, user is the column name. It's just sometimes those fields in the column populate either with just the abc123 or they populate with NAU\abc123. They aren't consistent. Sorry for the confusion. I'm trying to make it so every field in the user column is just the userid without the prefix "NAU\".&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 19:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301158#M90667</guid>
      <dc:creator>aba83</dc:creator>
      <dc:date>2017-05-19T19:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a prefix on a field during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301159#M90668</link>
      <description>&lt;P&gt;This worked, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 19:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-prefix-on-a-field-during-search/m-p/301159#M90668</guid>
      <dc:creator>aba83</dc:creator>
      <dc:date>2017-05-19T19:47:36Z</dc:date>
    </item>
  </channel>
</rss>

