<?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: I would like to hide some values in field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615758#M213975</link>
    <description>&lt;P&gt;The solution posted by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;should have worked. The assumption is that "worker_id" is the actual fieldname you're trying to normalize, if not, you should change worker_id to the actual fieldname.&lt;/P&gt;&lt;P&gt;A more flexible way to do this esp when you have a multi-domain environment with local accounts is to extract the id with regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=worker_id "(?&amp;lt;worker_id&amp;gt;[^\\]*)$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 03:43:47 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-10-04T03:43:47Z</dc:date>
    <item>
      <title>How to hide some values in field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615684#M213954</link>
      <description>&lt;P&gt;When i have query data&amp;nbsp; result from search in field worker id it show &amp;gt;&amp;gt; domain\worker_id&lt;/P&gt;
&lt;P&gt;search result Example&amp;nbsp; ABC\123456&amp;nbsp; it have domain name front of worker id.&lt;BR /&gt;&lt;BR /&gt;If i would like to deleted only domain&amp;nbsp; ABC\&amp;nbsp; in field and result&amp;nbsp; show only number of worker id&amp;nbsp; .&lt;BR /&gt;&lt;BR /&gt;Example&amp;nbsp; &amp;nbsp;&amp;nbsp;ABC\123456&amp;nbsp; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; 123456&lt;/P&gt;
&lt;P&gt;Please recommend&amp;nbsp; how to query in search.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;CR&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615684#M213954</guid>
      <dc:creator>chakuttha</dc:creator>
      <dc:date>2022-10-03T18:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to hide some values in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615685#M213955</link>
      <description>&lt;P&gt;There likely are several ways to do that.&amp;nbsp; Here are a couple&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| replace "ABC\" with "" in worker_id&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=worker_id "s/ABC\//g"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Oct 2022 17:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615685#M213955</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-03T17:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to hide some values in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615755#M213973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;richgalloway&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have try to do following your recommend it not work still show domain name front of worker id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 02:45:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615755#M213973</guid>
      <dc:creator>chakuttha</dc:creator>
      <dc:date>2022-10-04T02:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to hide some values in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615756#M213974</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250026"&gt;@chakuttha&lt;/a&gt;&amp;nbsp;Those instructions from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;should have been&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=worker_id "s/ABC\\\\//g"

OR this

| replace "ABC\\*" with "*" in worker_id&lt;/LI-CODE&gt;&lt;P&gt;There is a third option&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval worker_id=replace(worker_id, "ABC\\\\", "")&lt;/LI-CODE&gt;&lt;P&gt;Note in the middle one, the '\' character needs to be escaped ONCE for the SPL parser line, whereas in the rex and eval statements, the \ needs to be double escaped, once for the SPL parser line and secondly for the regex parser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 03:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615756#M213974</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-04T03:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to hide some values in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615758#M213975</link>
      <description>&lt;P&gt;The solution posted by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;should have worked. The assumption is that "worker_id" is the actual fieldname you're trying to normalize, if not, you should change worker_id to the actual fieldname.&lt;/P&gt;&lt;P&gt;A more flexible way to do this esp when you have a multi-domain environment with local accounts is to extract the id with regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=worker_id "(?&amp;lt;worker_id&amp;gt;[^\\]*)$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 03:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615758#M213975</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-04T03:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: I would like to hide some values in field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615760#M213977</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp; It work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you so much.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 04:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-hide-some-values-in-field/m-p/615760#M213977</guid>
      <dc:creator>chakuttha</dc:creator>
      <dc:date>2022-10-04T04:26:06Z</dc:date>
    </item>
  </channel>
</rss>

